1 / 10

M ATLAB – What Is It ?

M ATLAB – What Is It ?. Name is from mat rix lab oratory Powerful tool for Computation and visualization of engineering and science mathematics Communication of ideas Programming: Built-in editor, debugger, and help Many predefined functions (grouped in toolboxes )

felton
Télécharger la présentation

M ATLAB – What Is It ?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MATLAB – What Is It ? • Name is from matrix laboratory • Powerful tool for • Computation and visualization of engineering and science mathematics • Communication of ideas • Programming: • Built-in editor, debugger, and help • Many predefined functions (grouped in toolboxes) • Interpreted or compiled programs

  2. MATLAB – Where Is It ? MATLAB is available on all computers in the Engineering Computer Center and on many other computers located in departments within the College of Engineering (Computer Classroom 225 Wales). You can also purchase your own Student Version from MathWorks at: http://www.mathworks.com/academia/student_version/?BB=1

  3. How Do We Want To Use MATLABIn Dynamics Course? • Write a Simple MATLAB Program to Do the Following: • - Calculate Velocities of Sample Problem 15.3 • Make Plots of vD and ωBD vs θ in Two Different Windows • Mark Graphs to Indicate Text Solution Values and where ωBD = 0.

  4. Creating Your Own ProgramScript (m-file) Concept • M-file is a collection of MATLAB commands • Can be re-executed • Is easily changed/modified or e-mailed to someone • File format: Name.m • Commands are executed one by one sequentially • File is executed by typing its name (without .m) • Results appear in the command window (or use ; ) • Can be created using any text editor, but is most easily developed in MATLAB Editor Window

  5. Opens Editor Window to create new program Help menu provides answers to most questions In this window: - type & edit commands- test & run program- save work when finished Boot Up Default MATLAB Window

  6. Dot needed for element-by-element operation Demo MATLAB CodeCalculate & Plot Equation: y=2x+30x2-2x3

  7. Line Specifiers Change the LookEspecially Handy When Plotting Several Lines on Same GraphUse Help Menu to Find Out More Plotting Line Specifiers

  8. The Project Problem Use text to write to screen; text(x,y,’. . . ’)  θ  Mark Text Solution vD = ? ωBD = ? Labels & Titles

  9. Text Solution

  10. Good Luck!

More Related