This preview shows pages 1–7. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: EML 2920 Spring 2011 MATLAB introduction Tony Schmitz Associate Professor Mechanical and Aerospace Engineering Motivation A fundamental activity of engineering is to describe the world around us using mathematics. Use mathematical models to describe physical systems (modeling). Examples : Flow of water through orifice 1 st order differential equation Free oscillation of a mass on a spring 2 nd order differential equation Current in electrical circuits (RLC) 2 nd order differential equation Vibration of circular membrane Bessel functions Onedimensional heat flow partial differential equation (temperature depends on both position and time) MATLAB provides the tools to solve mathematical models in a programming environment that includes graphing capabilities. Outline Examine basic commands typed at the command prompt Arrays Equations Polynomials Plotting Systems of equations Mfiles Decisionmaking Loops Polynomial fitting Outline Examine basic commands typed at the command prompt Arrays Equations Polynomials Plotting Systems of equations Mfiles Decisionmaking Loops Polynomial fitting Command prompt Start MATLAB by doubleclicking on icon or selecting application from the Start menu. MATLAB desktop will be launched. MATLAB R2006a.lnk Command prompt >>. Can type commands here (or) write and save your own programs (using mfiles). Begin with command prompt. Type the following and hit Enter. Command prompt The variable a is assigned (=) the value of the square root (sqrt) of 243 and the result is echoed to the screen. To clear the variable, use the clear a command. Note that it disappears from the Workspace area....
View Full
Document
 Spring '09
 Carrol

Click to edit the document details