Question: USING MAT LAB Lab Exercise Write a simple script that will plot the area and the perimeter-difference of a hollow disc as functions of the

USING MAT LAB  USING MAT LAB Lab Exercise Write a simple script that will
plot the area and the perimeter-difference of a hollow disc as functions

Lab Exercise Write a simple script that will plot the area and the perimeter-difference of a hollow disc as functions of the outer radius (inner radius is fixed). Hollow Disc Area = A = (3-2) Hollow Disc Perimeter Difference = AP AP = P.-P. AP = 29(. - ) Where r, is the inner radius and r, is the outer radius. The script should produce three types of plots. The first one for the area versus ro, The second for the perimeter difference versus ro, and The third one for the area versus the perimeter difference. Steps: 1. Assign a fixed value to a variable for the inner radius, 2. Assign an array variable for the outer radius. The outer radius array should include values start with a value of 1.05*r and incrementally increases with a reasonable step size (within 5 to 10% of ri). The roarray should include 40 elements. 3. Write an independent user function that returns the are and the perimeter for a given ri and roarray. The function should return an error statement if an element in r, is smaller than ri or any value in both ri and r. is negative. 4. Make the main script calls your user function to generate the area and the perimeter arrays. 5. Plot the arrays as required (make sure to include all plot labels, titles etc. Make sure they are clear readable and presentable) MECH 240 Lab 4 2/2 What should be included in the reported? 1- The main script (includes all explanatory comments) 2- The user function code (includes all explanatory comments) 3- A good example presented by the three output plots I 4- A photo of your computer screen showing the three above items in the screen with your ID as well. 5- A Photo of the testing results (the error message) for negative values in ro

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!