matlab_introduction_2_3_11

matlab_introduction_2_3_11 - EML 2920 Spring 2011 MATLAB...

Info iconThis preview shows pages 1–7. 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

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: 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 One-dimensional 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 M-files Decision-making Loops Polynomial fitting Outline Examine basic commands typed at the command prompt Arrays Equations Polynomials Plotting Systems of equations M-files Decision-making Loops Polynomial fitting Command prompt Start MATLAB by double-clicking 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 m-files). 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

Page1 / 28

matlab_introduction_2_3_11 - EML 2920 Spring 2011 MATLAB...

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

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