help command Explanation and syntax for a particular command % Comment on that line ; Suppress output format long Make Matlab print more digits pi 3.14159265358979 exp(1) 2.71828182845905 = Left assignment * Matrix multiplication .* elementwise multiplication ^ to the power of .^ elementwise exponetiation == Equal to ~= Not equal to < Less than > Greater than <= Less than or equal to >= Greater than or equal to & And | Or pwd Present working directory dir List directory cd Change directory tic Start the stop watch toc Print the time on the stop watch rand Sample from Unif(0,1) rand(n,m) Random n by m matrix from Unif(0,1) randn Sample from N(0,1) randn(n,m) Random n by m matrix from N(0,1) l:n Vector from l to n, by step size 1 l:m:n Vector from l to n, by step size m x(i) ith element of vector x [1,2;3,4;5,6] An example of a 3 by 2 matrix A(I,J) Submatrix of rows I and cols J ' Transpose A(i,:) ith row of matrix A A(:,i) ith col of matrix A zeros(n,m) Create a n by m zero matrix ones(n,m) Create a n by m matrix with all entries 1 eye(n) Create a n by n identity matrix inv(A) Invert square matrix A A\b Solves system of linear equations Ax=b for vector x (Never write "x = inv(A)*b"!!!) disp('hello') Displays hello plot(x,y) Plot points (x(i),y(i)) input('How old are you? ') Prompts user for a value why Ask Matlab why they do what they do