Ch5_15 - Next Previous Section 5.15 MatLab funfuns Section 5.15 MatLab funfuns 11 ® funfuns function functions ® written so that another function

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Next Previous Section 5.15: MatLab funfuns Section 5.15: MatLab funfuns 11 ® funfuns @ function functions ® written so that another function can call them ® We’ll demonstrate two common MatLab funfuns ® Fzero ® uses secant method to find function roots ® root is sometimes call the zero ® Ode45 ® numerically solves differential equations ® uses a modification of the Euler’s Method ® the Runge-Kutta method Section 5.15: MatLab funfuns Next Previous Section 5.15: MatLab funfuns Section 5.15: MatLab funfuns 22 MATLAB help is quite good in describing the use of fzero and ode45 MatLab function help is helpful Next Previous Section 5.15: MatLab funfuns Section 5.15: MatLab funfuns 33- 15- 10- 5 5 10 15- 10- 5 5 10 1 x 2 x 5 . x 18 . ) x ( f 2 3 +-- = Remember this equation? Next Previous Section 5.15: MatLab funfuns Section 5.15: MatLab funfuns 44 ® Main program ‘rootfinder.m’ ® assigns an initial guess and calls fzero ® fzero uses the secant method to determine the root of the equation...
View Full Document

This note was uploaded on 05/19/2008 for the course ENGR 25 taught by Professor All during the Spring '08 term at Lehigh University .

Page1 / 10

Ch5_15 - Next Previous Section 5.15 MatLab funfuns Section 5.15 MatLab funfuns 11 ® funfuns function functions ® written so that another function

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online