Question: Please solve the following questions using Matlab so I can find out what I scored on my midterm today. 1. Write a matlab function to


Please solve the following questions using Matlab so I can find out what I scored on my midterm today.
1. Write a matlab function to calculate volume of a cone given by the formula Tr where r is the radius of the base and h is the height of the cone. Using this function, find the volume of a cone having radius of the base 2 cm and height 6 cm. 2. Using command polyval, evaluate the polynomial or 3 3. Given the following: z 1, 2, 3, 4, 5, 6, 7 1,4, 8, 15, 25, 37, 48] Find the best fit polynomial r(z) of degree 1 that will fit the data. 1. Write a matlab function to calculate volume of a cone given by the formula Tr where r is the radius of the base and h is the height of the cone. Using this function, find the volume of a cone having radius of the base 2 cm and height 6 cm. 2. Using command polyval, evaluate the polynomial or 3 3. Given the following: z 1, 2, 3, 4, 5, 6, 7 1,4, 8, 15, 25, 37, 48] Find the best fit polynomial r(z) of degree 1 that will fit the data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
