{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Ch5_14 - 1 Section 5.14 MatLab Functions Built in MatLab...

This preview shows pages 1–6. Sign up to view the full content.

Next Previous Section 5.14: MatLab Functions 11 Section 5.14: MatLab Functions ® Built in MatLab function used in our previous examples: ® sort, max, min, std, mean ® To see the other data functions available: ® Type help datafun at >> prompt

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Next Previous Section 5.14: MatLab Functions 22 MatLab function help
Next Previous Section 5.14: MatLab Functions 33 Typical call format ( coef = polyfit(x,y,n) ® x = vector of x data ® y = vector of y data ® n = order of polynomial desired ® n=1 R for a straight line ® n=2 R quadratic fit line ® etc. ® Returns vector (coef in example—could be any name variable) ® coef= constants in the polynomial, from highest order to lowest order ® coef(1) = highest power term [ coef(1)*x^n ] ® coef(2) = next highest power term [ coef(2)*x^(n-1) ] ® coef(3) = next highest [ coef(3)*x^(n-2) ] ® etc. ® Quadratic example: linreg.m Curve fitting using MatLab function “ployfit”

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Next Previous Section 5.14:

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 6

Ch5_14 - 1 Section 5.14 MatLab Functions Built in MatLab...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online