Question: use matlab to answer questions 12_ Problem HW2P1 (25 points) The surface area and volume of a frustum of a cone of radii ,ta and

use matlab to answer questions use matlab to answer questions 12_ Problem HW2P1 (25 points) The surface

12_ Problem HW2P1 (25 points) The surface area and volume of a frustum of a cone of radii ,ta and height h, as shown in Fig.. are S = n(t, + rara - r.) + H2 + (1+r) (1) Vaah(t +1473 + r) It is required to determine the volume and surface area of frustum cones of the dimensions shown in the following table Ty [cm] [cm] [cm] S[cm] 25 3.2 4.4 131.586874757492 4 5 1 19.3 10.4 Work this problem in two ways: 1. Write a script file with the name HW2P1_Script.m that: a. Assign values to variables R1, R2, and H. Use a semicolon at the end of each statement in order to suppress the display of these variables. b. Determine the surface area and volume from equations (1) and (2) and assign them to variables S and V. Do not use a semicolon at the end of these commands to display the results in the command window. C. Edit this file multiple times for various values of R1, R2, and H and run the file each time to display the values of S and V in each time. 2. Write a function file with the name HW2P1_fn.m that: a Takes R1, R2, and H as input arguments b. Determine the surface area and volume V from equations (1) and (2) and return them as output arguments. c. Use/call the function from the command window multiple times for various values of R1, R2. and H in Table to display the values of both S and V in each time. Use the first several lines of your script/functions to describe the problem you are solving

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!