Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

MatLab Week 2

01/28/2015

Matrix A(2,3) describes the character at row 2 column 3.


Matrix A(;,2) describes all the characters in column 2
Matrix A(3,:) describes all the characters in row 3
Adding a prime to the original name of the vector shifts the matrixes x and y
dimensions.
operation
element-wise matrix-wise
addition
+
+
subtraction
multiplication
.*
*
division
./
/
left division
.\
\
exponentiation
.^
^
transpose w/o complex conjugation .'
transpose with complex conjugation
'
x=[x1,x2,x3.]
f(x)=[f(x1),f(x2),f(x3),]
Control+Enter brings selected section into command window.
Code:plot(x,y,r);- gives plot of of (x,y) drawn out
linspace(0,3,301) gives 301 characters between 0,3
figure; plot(x,f(x))lk

You might also like