Question: using MATLAB codding only 1-Write a script that shows the user the following menu: If the user selects the button (X), the script should print

1-Write a script that shows the user the following menu: If the user selects the button (X), the script should print an error message. Calculate Area Circum Ext If the user selects the button (Area): The script should: 1- Ask the user to enter the radius 2- Call the function (getarea) which calculates the area of the circle then calls its subfunction (printarea) to print the result. . If the user selects the button (Circum): The script should: 1- Ask the user to enter the radius 2- Call the function (getcircum) which calculates the circumference of the circle then calls its subfunction (printcircum) to print the result. . If the user selects the button (Exit), the program stops. There should be one script and two functions (with a subfunction for each) to calculate and print the result M. x Command Window Please select one option from the menu Error Please select one option from the menu Enter the raduis: 5 Area of circle - 78.54 Calculate Area Circum Please select one option from the menu Enter the raduis: 5 Circumference of circle - 31.42 Ext Please select one option from the menu for
Step by Step Solution
There are 3 Steps involved in it
To create the script and functions in MATLAB follow these steps Step 1 Create the Main Script This s... View full answer
Get step-by-step solutions from verified subject matter experts
