Question: Matlab a b and c 1. There are eight pints in a gallon, and 1.76 pints in a liter. The volume of a tank is
1. There are eight pints in a gallon, and 1.76 pints in a liter. The volume of a tank is given as 2 gallons and 4 pints. Write a script which inputs this volume in gallons and pints and converts it to liters. (35 points) Hint: write the script that will ask you first for 'Enter Gallons' and second 'Enter pints 2. Ten students in a class write a test. The marks are out of 10. All the marks are entered in a MATLAB vector marks. Write a statement to find and display the average mark. Try it on the following marks: (10 points) 5 80 10385794 3. Create the following matrix by using vector notation for creating vectors with constant spacing the linspace command. Do not type individual elements explicitly. (20 points) and/or 10 3 203 B- [303] 403 503 4. Generate a table of conversions from degrees (first column) to radians (second column). Degrees should go from 0 to 360o in steps of 10. Recall that r radians 180. (35 points) 1. There are eight pints in a gallon, and 1.76 pints in a liter. The volume of a tank is given as 2 gallons and 4 pints. Write a script which inputs this volume in gallons and pints and converts it to liters. (35 points) Hint: write the script that will ask you first for 'Enter Gallons' and second 'Enter pints 2. Ten students in a class write a test. The marks are out of 10. All the marks are entered in a MATLAB vector marks. Write a statement to find and display the average mark. Try it on the following marks: (10 points) 5 80 10385794 3. Create the following matrix by using vector notation for creating vectors with constant spacing the linspace command. Do not type individual elements explicitly. (20 points) and/or 10 3 203 B- [303] 403 503 4. Generate a table of conversions from degrees (first column) to radians (second column). Degrees should go from 0 to 360o in steps of 10. Recall that r radians 180. (35 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
