Question: help with the coding. using matlab Create a function that calculates the surface area (SA), volume (V), and density () of a cone with a

 help with the coding. using matlab Create a function that calculates

help with the coding. using matlab

Create a function that calculates the surface area (SA), volume (V), and density () of a cone with a given radius (r), height (h), and mass (m). The equations for the surface area, volume, and density are given below SA = nr(r + Vh2 + r2) arah p=r The function should be named cone Properties. The function should have three inputs (Radius, Height, Mass) and three outputs (SurfaceArea, Volume, Density). The inputs must be in units of meters and kilograms. TEST: Test your function with r=5 m, h=10 m, and m=80 kg. The results should be as follows if the code is correct; SA = 254.16 m, V = 261.80 m, and p = 0.3056 kg/m2. Remember, you cannot run a function from within its m-file. You must call the function in a new m-file or in the Command Window. NOTE: The function and m-file must be named cone Properties or it will not run. If the program does not run, there will be serious point deductions. You only need to submit the function m-file. Do not submit any test files

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!