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. Using 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 coatStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started