This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Duration: 75 minutes Good Luck 1. The volume V of liquid in a hollow horizontal cylinder of radius r and length L is related to the depth of liquid h by L h rh 2 ) h r ( r h r cos r V 2 1 2 − − − − = − Develop an Mfile to create a plot of volume versus depth for 0 ≤ h ≤ 3. Test the program for r = 2m and L = 5m. 2. Complete the following code which computes the values of y = 2 x – 4 for the given x data, and plots a y versus x plot for the data set. Make sure to label the graph properly. x = [2 3 5 7 9]; for k = x( y = 2^  4; end 3. Letter grades for a freshman course are P (Pass), C (Conditional Pass) and F (Fail). The flowchart below calculates the letter grade for a student based on his/her test scores. Write the corresponding Matlab code....
View
Full
Document
This note was uploaded on 05/12/2010 for the course MATH 123 taught by Professor Sait during the Spring '09 term at Istanbul Technical University.
 Spring '09
 Sait
 Math, Formulas

Click to edit the document details