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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post 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 66 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply