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

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!