Question: Matlab Write a function rectArea(width,height). The function returns the area of a rectangle pursuant to parameters width and height. The Math equation is: area=width*height Save
Matlab
Write a function rectArea(width,height). The function returns the area of a rectangle pursuant to parameters width and height. The Math equation is: area=width*height Save your function in rectArea.m Then write a script. This script asks the user to input width 1 and height 1 for rectangle 1, and width 2 and height 2 for rectangle 2. Then display areas of rectangle 1 and rectangle 2.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
