Basic matrix operations in MATLAB: add, subtract, transpose, invert

2 replies · 3K views · last reply
silly_me
Messages
1
Reaction score
0
hi
im learning MATLAB at home.So could someone tell me how to do the basic funtions add,subtract transpose,invert matix in the matlab.
 
Have you tried looking the help files? The Matlab help is actually very good.

E.g the operators for adding and subtracting are -not surprissingly- + and -
 
matlab stands for Matric Laboratory. By default an operation/function is a matrix operation. So if you are familier with matrix operations then there shouldn't be a problem. By the way do you know to enter matrices into MATLAB in the first place?

The pitfall - beware of array operation!