from: http://www.simwe.com/forum/thread-794137-1-1.html
总结了一些Matlab的操作符和特殊字符,希望对大家有用。
Operators and special characters.
Arithmetic operators.
plus - Plus +
uplus - Unary plus +
minus - Minus -
uminus - Unaryminus -
mtimes - Matrixmultiply *
times - Array multiply .*
mpower - Matrixpower ^
power - Array power .^
mldivide - Backslash or leftmatrix divide \
mrdivide - Slash or rightmatrix divide /
ldivide - Left arraydivide .\
rdivide - Right arraydivide ./
kron - Kronecker tensor product kron
Relational operators.
eq -Equal ==
ne - Notequal ~=
lt - Lessthan <
gt - Greaterthan >
le - Less thanor equal <=
ge - Greaterthan 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 - LogicalNOT ~
xor - LogicalEXCLUSIVE OR
any - True if anyelement of vector is nonzero
all - True ifall elements of vector are nonzero
Special characters.
colon - Colon :
paren - Parentheses and subscripting ()
paren - Brackets []
paren - Braces and subscripting {}
punct - Function handle creation @
punct - Decimal point .
punct - Structure field access .
punct - Parent directory ..
punct - Continuation ...
punct - Separator ,
punct - Semicolon ;
punct - Comment %
punct - Invoke operating systemcommand !
punct - Assignment =
punct - Quote '
transpose -Transpose .'
ctranspose - Complex conjugate transpose '
horzcat - Horizontalconcatenation [,]
vertcat - Verticalconcatenation [;]
subsasgn - Subscriptedassignment ( ),{},.
subsref - Subscriptedreference ( ),{},.
subsindex - Subscriptindex
Bitwise operators.
bitand - Bit-wiseAND.
bitcmp - Complementbits.
bitor - Bit-wise OR.
bitmax - Maximumfloating point integer.
bitxor - Bit-wiseXOR.
bitset - Setbit.
bitget - Getbit.
bitshift - Bit-wise shift.
Setoperators.
union - Set union.
unique - Setunique.
intersect - Setintersection.
setdiff - Set difference.
setxor - Setexclusive-or.
ismember - True for setmember.
OperatorUsage
\a - Alarm (beep)
\\ - Backslash
\$ - Dollar sign
\b - Backspace
\f - Form feed
\n - New line
\r - Carriage return
\t - Horizontal tab
\v - Verticaltab
\oN or \o{N} - Characterof octal value N
\xN or \x{N} - Characterof hexadecimal value N
\char - If acharacter has special meaning in a regular expression, precede itwith backslash (\) to match itliterally.