{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

matlab_introduction_2_3_11

# matlab_introduction_2_3_11 - EML 2920 Spring 2011 MATLAB...

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

EML 2920 Spring 2011 MATLAB introduction Tony Schmitz Associate Professor Mechanical and Aerospace Engineering

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

View Full Document
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

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

View Full Document
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.

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

View Full Document
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.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern