Page 1 of 1

Question 1: Create a user-defined function named fun_B which computes both the surface area and the volume of a cylinder

Posted: Tue Sep 07, 2021 7:11 am
by answerhappygod
Question 1 Create A User Defined Function Named Fun B Which Computes Both The Surface Area And The Volume Of A Cylinder 1
Question 1 Create A User Defined Function Named Fun B Which Computes Both The Surface Area And The Volume Of A Cylinder 1 (37.61 KiB) Viewed 79 times
Question 1: Create a user-defined function named fun_B 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 20 and height of 100, which returns both its surface area and volume. (20p) A = 2 arh+2r? V = arh A Sur Area V me Question 2: Create a MATLAB code/script which prompts the user to enter three numbers assigned to the variables named d, e, f and returns the maximum input printing out a statement below. (20p) The maximum number you entered is e.