This preview shows page 1. Sign up to view the full content.
Unformatted text preview: These are given below: y(ft) 0.005 0.01 0.02 0.04 0.06 0.08 u(ft/s) 0.74 1.51 3.03 6.37 10.21 14.43 (a) Using MATLAB , fit the velocity to a polynomial in y of the form: u c c y c y c y = + + + 1 2 3 2 4 3 and determine the fitting coefficients. (b) Plot the velocity distribution, and determine the shear stress at the wall. Hints: While there is no “one way” to do this in MATLAB, try fitting the discrete data with the POLYFIT command. I prefer to plot functions using the POLYVAL command, which constructs a set of discrete data from a function at specified intervals, and then, the PLOT command to plot these data. There are other ways too. Explore!...
View
Full
Document
This note was uploaded on 04/18/2008 for the course ME 70 taught by Professor Cappelli,m during the Spring '08 term at Stanford.
 Spring '08
 Cappelli,M
 Statics

Click to edit the document details