**Unformatted text preview: **>>
>> 23'} 3*)
>> )7? ))
I>I> >>
)I>
23>)
33')
)) 23>) 3*)
3r) 3*) )I>
>> 3*) 4 5 6;
7 8 9] Z an alternate way of writing the above
A=[1,2,3;4,5,6;
7,8,9] Z another alternate —
Z the ... indicates ”continued on next line"
A’ Z transpose of matrix A
3.1*A Z scalar multiple of A
A/2 Z same as 0.5 * A
A(2,3) Z the entry in A in location (row) 2, (column) 3, i.e 6
A(1:2,[1 3]) Z the entries in A which are in rows 1 to 2 and columns 1 and 3
A(:,2)=[4;2;1] Z replace column 2 (all rows) by the column vector
B=rand(3,3) Z B is a random 3 by 3 matrix (entries between 0 an 1)
A+B Z sum of same sized matrices A and B
Z MATLAB has the following matrix operators that will be considered later
A*B Z matrix multiplication of A by B
A“5 Z 5th power of matrix A
A/B Z right division of A by B
B\A Z left division of A by B
Z MATLAB also allow the following array operations which have no equivalent in Maths A.*B Z multiply the corresponding entries together ...

View
Full Document

- Fall '08
- Staff
- Linear Algebra, Algebra, Scalar