Question 1: Create a user-defined function named fun_B which computes both the surface area and the volume of a cylinder
-
- Site Admin
- Posts: 899559
- Joined: Mon Aug 02, 2021 8:13 am
Question 1: Create a user-defined function named fun_B which computes both the surface area and the volume of a cylinder
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.