Microsoft PowerPoint - Introduction to Matlab 2

Microsoft PowerPoint - Introduction to Matlab 2 - MATLAB...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB PART PART PART PART PART PART PART PART 2 PREPARED BY PREPARED BY PREPARED BY PREPARED BY PREPARED BY PREPARED BY PREPARED BY PREPARED BY S. M. S. M. S. M. S. M. S. M. S. M. S. M. S. M. RAFIGH RAFIGH RAFIGH RAFIGH RAFIGH RAFIGH RAFIGH RAFIGH 2011 2011 2011 2011 2011 2011 2011 2011 COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. HOSSEINI HOSSEINI HOSSEINI HOSSEINI HOSSEINI HOSSEINI HOSSEINI HOSSEINI Desktop Tools (Matlab v6) r Command Window – type commands r Workspace – view program variables lear clear – clear to clear – double click on a variable to see it in the Array Editor r Command History – view past commands – save a whole session using diary r Launch Pad – access tools, demos and documentation Matlab Files (.m) • Use predefined functions or write your own functions • Reside on the current directory or the search path – add with File/Set Path • Use the Editor/Debugger to edit, run Matrices • a vector x = [1 2 5 1] x = 1 2 5 1 matrix • a matrix x = [1 2 3; 5 1 4; 3 2 -1] x = 1 2 3 5 1 4 3 2 -1 • transpose y = x.’ y = 1 2 5 1 Matrices • x(i,j) subscription y=x(2,3) y = 4 • whole row • whole column y=x(3,:) y = 3 2 -1 y=x(:,2) y = 2 1 2 Operators (arithmetic) + addition- subtraction ultiplication...
View Full Document

This note was uploaded on 06/21/2011 for the course ME 2072 taught by Professor Prof. hosseini during the Winter '09 term at Sharif University of Technology.

Page1 / 26

Microsoft PowerPoint - Introduction to Matlab 2 - MATLAB...

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

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