Question: write a function separatethem that will receive one input argument which is a structure containing fields names 'length' and 'width' and will return the two
write a function separatethem that will receive one input argument which is a structure containing fields names 'length' and 'width' and will return the two values separately. Here is an example of caling the function:
>>myrectangle = struct('length',33,'width',2);
>>[l w] = separatethem(myrectangle)
l=
33
w=
2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
