Question: 1. Write a MATLAB function, named calc that will ask the user to enter the lengths of the two legs of a right triangle, calculates

1. Write a MATLAB function, named calc that will ask the user to enter the lengths of the two legs of a right triangle, calculates the area and perimeter of the triangle. The function will accept no parameters, but it would return two values, i.e. area and perimeter. Area and perimeter will be display by a calling script/function to calc. Test your program with the following data: Legs: 10.25, 4.385

2. 1. Write a MATLAB function, named calc that will ask the userUsing GUIDE, create a GUI solution for this problem in MATLAB. It should include the following: 1. Title, located in a static textbox at the top (centered) 2. One edit textbox, used to enter the temperature 3. A static textbox to display the result

Create a program that prompts the user to enter a scalar value for the outside air temperature. If the temperature is equal to or above 80F, send a message to the command window telling the user to wear shorts. If the temperature is between 60F and 80F, send a message to the command window telling the user that it is a beautiful day. If the temperature is equal to or below 60F, send a message to the command window telling the user to wear a jacket or coat

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!