Matlab_Introduction - 1/14/2011 1 Introduction: Matlab:...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1/14/2011 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Introduction: Matlab: Matrix Laboratory Works on a matrix of any dimensions Can run simulations, plot graphs, solve equations, etc…. Graphical programming - Simulink 1/14/2011 2
Background image of page 2
Matlab Desktop: Toolbar Displays all the tools and applications associated with MATLAB Command Window Where you enter variables and run functions and scripts Where results are displayed. Workspace Consists of the variables you create during a MATLAB session Command History List a history of all commands run from the command window Double click them to revaluate them Current Directory Shows the current file location used Set the current file directory at the beginning of each session 1/14/2011 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
Getting Started: Defining Variables: A = 23; Use „;‟ to suppress output in the command window. Matlab stores list of all variables in the workspace Click and delete individual variables or redefine them “clear” deletes all defined variables “clc” clears the command window Built-in Matlab functions: MATLAB provides a large number of standard mathematical functions like log, abs, exp, sin, sqrt etc. Use product help in toolbar to learn Matlab‟s syntax To learn how a function is implemented type “help” followed by the function name in the command window Help sqrt 1/14/2011 4
Background image of page 4
Matrices: Entering Matrices A = [1, 2, 3; 4, 5, 6] Use comma or space to separate elements of a row „ ; ‟ indicates the end of each row
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/22/2011 for the course ME 375 taught by Professor Meckle during the Fall '10 term at Purdue University-West Lafayette.

Page1 / 14

Matlab_Introduction - 1/14/2011 1 Introduction: Matlab:...

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

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