Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions

Question

In Problems 5 16, evaluate each expression. 37 19

Answered: 1 week ago