Question: Using MatLab 1. Create a M-file to find the volume, V, of a right circular cylinder. V = pi r ^2 Prompt the user to
Using MatLab
1. Create a M-file to find the volume, V, of a right circular cylinder. V = pi r^2 Prompt the user to the enter values for r and h
2. Create a vector, h, that starts at a, ends at b, and has a spacing of c. Allow the user to input all of these parameters.
3. Combine the previous two examples so that the vector created in Question 2 is used to calculate multiple volumes of a right circular cylinder from Question 1. Request the user to input a value for r.
4. Use the disp command to create a title for a table that converts inches to feet
5. Use the disp command to create column headings for your table.
6. Create an inches vector from 0 to 120 with an increment of 10.
7. Calculate the corresponding values of feet.
8. Group the inch vector and the feet vector together into a 2 column matrix.
9. Use the fprintf command to send your table to the command window.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
