Question: Program a MATLAB function file, entitled MyCylinder n that can calculate the surface area (S) and the volume (V) of a cylinder with a radius
Program a MATLAB function file, entitled MyCylinder n that can calculate the surface area (S) and the volume (V) of a cylinder with a radius of r and a height of k. The input variables of your m-file function should be r and h and the output should be S and V. Recall that the surface area of a cylinder is, 2 pi r^2 + 2 pi rh and the volume is pi r^2h. Using the function file in (3) to develop a MATLAB file, entitled MyCylinder_plot n that can plot the variation of the surface area (S) of a cylinder with the radius changing from r = 0.1 m to 100 m while the height of cylinder is fixed at h = 0.5 m. Label both axis of the figure correctly with the title of Height = 0.5 m
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
