Question: Solve this part of the assignment using MATLAB only. Prepare your script/s and take their prints. Explain your process using comments 1. Write a

Solve this part of the assignment using MATLAB only. Prepare your script/s

 

Solve this part of the assignment using MATLAB only. Prepare your script/s and take their prints. Explain your process using comments 1. Write a user-written function that will calculate volume and surface area of a cylinder for dimensions, the height and the radius provided by the user at run-time a. If the cylinder in Q1 is required to be painted, calculate using your user-written function how much paint (in gallons or liters) is required. b. If the cylinder in Q1 is made up of Aluminum, find out what would be the material cost. c. Now print all the results/details using either 'fprintf()' or 'sprint()' 2. Solve the following set of linear equation for variables x,y,z and w x+3y+6z 2w = 2 x+y-z-5w=-6 3x + y +6w=3 -2x+7y 3z + w = 11 3. Interpolate the dataset using both linear and cubic(spline) interpolation for x=2.33 and 4.5 x= [0,1,2,3,4,5] y= [15, 10, 9, 6,2,0]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!