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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!