Question: Q7. Write a MATLAB function to calculate the volume of a Cone. Use the following equation: V= (1/3) Thr^2 Then call this function in
Q7. Write a MATLAB function to calculate the volume of a Cone. Use the following equation: V= (1/3) Thr^2 Then call this function in a for loop that calculates the volume of five Cones. Where the Cone Heights are h= {5, 8, 7, 11,9} cm, and its radius r= {6, 10, 9, 8, 4} cm respectively, then display the results. (5 Marks)
Step by Step Solution
★★★★★
3.40 Rating (153 Votes )
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
function volume Vconehr volume 13hr2 end h 15 8 7 11 9 r 6 10 9 8 4 for i 15 volume Vconehiri fp... View full answer
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
