{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

matlab_introduction_2_3_11

matlab_introduction_2_3_11 - EML 2920 Spring 2011 MATLAB...

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

View Full Document Right Arrow Icon
EML 2920 Spring 2011 MATLAB introduction Tony Schmitz Associate Professor Mechanical and Aerospace Engineering
Image of page 1

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

View Full Document Right Arrow Icon
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.
Image of page 2
Outline • Examine basic commands typed at the command prompt • Arrays • Equations • Polynomials • Plotting • Systems of equations • M-files • Decision-making • Loops • Polynomial fitting
Image of page 3

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

View Full Document Right Arrow Icon
Outline Examine basic commands typed at the command prompt • Arrays • Equations • Polynomials • Plotting • Systems of equations • M-files • Decision-making • Loops • Polynomial fitting
Image of page 4
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.
Image of page 5

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern