Question: Write a function in Matlab that will receive a variable number of input arguments: the length and width of a rectangle, and possibly also the
Write a function in Matlab that will receive a variable number of input arguments: the length and width of a rectangle, and possibly also the height of a box that has this rectangle as its base. The function should return the rectangle area if just the length and width are passed, or also the volume if the height is also passed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
