Question: Create a user-defined function named fun_A which computes both the surface area and the volume of a cylinder with a given radius and height
Create a user-defined function named fun_A which computes both the surface area and the volume of a cylinder with a given radius and height in MATLAB. Then, write down the MATLAB expression to call the above function for the cylinder with radius of 10 and height of 50, which returns both its surface area and volume. (20p) A = 2rh+2r V = rh A Safe Ais V
Step by Step Solution
There are 3 Steps involved in it
Heres a MATLAB userdefined function named funA that computes both the ... View full answer
Get step-by-step solutions from verified subject matter experts
