MAT LAB Commands
MAT LAB Commands
help ops
Arithmetic operators.
plus
- Plus
uplus
- Unary plus
minus
- Minus
uminus - Unary minus
mtimes - Matrix multiply
times
- Array multiply
mpower - Matrix power
power - Array power
mldivide - Backslash or left matrix divide
mrdivide - Slash or right matrix divide
ldivide - Left array divide
rdivide - Right array divide
+
+
*
.*
^
.^
\
/
.\
./
Relational operators.
eq
ne
lt
gt
le
ge
- Equal
- Not equal
- Less than
- Greater than
- Less than or equal
- Greater than or equal
==
~=
<
>
<=
>=
Logical operators.
relop
- Short-circuit logical AND
&&
relop
- Short-circuit logical OR
||
and
- Element-wise logical AND
&
or
- Element-wise logical OR
|
not
- Logical NOT
~
xor
- Logical EXCLUSIVE OR
any
- True if any element of vector is nonzero
all
- True if all elements of vector are nonzero
Special characters.
colon
paren
paren
paren
punct
punct
punct
- Colon
:
- Parentheses and subscripting
()
- Brackets
[]
- Braces and subscripting
{}
- Function handle creation
@
- Decimal point
.
- Structure field access
.
punct
- Parent directory
..
punct
- Continuation
...
punct
- Separator
,
punct
- Semicolon
;
punct
- Comment
%
punct
- Invoke operating system command !
punct
- Assignment
=
punct
- Quote
'
transpose - Transpose
.'
ctranspose - Complex conjugate transpose
'
horzcat - Horizontal concatenation
[,]
vertcat - Vertical concatenation
[;]
subsasgn - Subscripted assignment
( ),{ },.
subsref - Subscripted reference
( ),{ },.
subsindex - Subscript index
metaclass - Metaclass for MATLAB class
?
2. help matfun
Matrix functions - numerical linear algebra.
Matrix analysis.
norm
- Matrix or vector norm.
normest - Estimate the matrix 2-norm.
rank
- Matrix rank.
det
- Determinant.
trace
- Sum of diagonal elements.
null
- Null space.
orth
- Orthogonalization.
rref
- Reduced row echelon form.
subspace - Angle between two subspaces.