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
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 ) - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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
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
How Do We Want To Use MATLAB
In 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.
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
Boot Up Default MATLAB Window
Help menu provides answers to most questions
Opens Editor Window to create new program
In this window: - type & edit commands- test & run program- save work when finished