Matlab Quick Reference Page 2

ADVERTISEMENT

Comma
Cosine and hyperbolic cosine
Case switch
,
cos, cosh
case
Semicolon
Cotangent and hyperbolic cotangent
Begin catch block
;
cot, coth
catch
Comment
Cosecant and hyperbolic cosecant
Pass control to the next iteration of for or while loop
%
csc, csch
continue
Exclamation point
Exponential
Conditionally execute statements
!
exp
else
Transpose and quote
Round towards zero
Conditionally execute statements
fix
elseif
.’
Nonconjugated transpose
floor
Round towards minus infinity
Terminate for, while, switch, try, and if statements or
end
indicate last index
Assignment
Greatest common divisor
=
gcd
Display error messages
error
Equality
Imaginary part of a complex number
==
imag
Repeat statements a specific number of times
for
Relational operators
Least common multipl e
< >
lcm
Conditionally execute statements
if
Logical and
Natural logarithm
&
log
Default part of switch statement
otherwise
Logical or
Base 2 logarithm and dissect floating-point numbers into
|
log2
exponent and mantissa
Return to the invoking function
return
Logical not
~
Common (base 10) logarithm
Switch among several cases based on expression
log10
switch
Logical exclusive or
xor
Modulus (signed remainder after division)
Begin try block
mod
try
Binomial coefficient or all combinations
Display warning message
nchoosek
warning
Logical Functions
Real part of complex number
Repeat statements an indefinite number of times
real
while
Test to determine if all elements are nonzero
all
Remainder after division
rem
Test for any nonzeros
any
Round to nearest integer
round
Check if a variable or file exists
exist
Interactive Input
Secant and hyperbolic secant
sec, sech
Find indices and values of nonzero elements
find
Request user input
input
Signum function
sign
Detect state
is*
Invoke the keyboard in an M-file
keyboard
Sine and hyperbolic sine
sin, sinh
Detect an object of a given class
isa
Generate a menu of choices for user input
menu
sqrt
Square root
Test if string is a MATLAB keyword
iskeyword
Halt execution temporarily
pause
Tangent and hyperbolic tangent
tan, tanh
Test if string is a valid variable name
isvarname
Convert numeric values to logical
logical
Language Constructs and Debugging
Object-Oriented Programming
True if M-file cannot be cleared
mislocked
MATLAB as a Programming Language
Create object or return class of object
class
Elementary Math Functions
Execute builtin function from overloaded method
Convert to double precision
builtin
double
Absolute value and complex magnitude
Interpret strings containing MATLAB expressions
Inferior class relationship
abs
eval
inferiorto
Inverse cosine and inverse hyperbolic cosine
Evaluate MATLAB expression with capture
Construct an inline object
acos, acosh
evalc
inline
Convert to signed integer
Inverse cotangent and inverse hyperbolic cotangent
Evaluate expression in workspace
int8, int16, int32
acot, acoth
evalin
Inverse cosecant and inverse hyperbolic cosecant
Function evaluation
Detect an object of a given class
acsc, acsch
feval
isa
Phase angle
Function M-files
Extends the load function for user objects
angle
function
loadobj
asec, asech
Inverse secant and inverse hyperbolic secant
global
Define global variables
saveobj
Save filter for objects
Convert to single precision
Inverse sine and inverse hyperbolic sine
Check number of input arguments
single
asin, asinh
nargchk
Inverse tangent and inverse hyperbolic tangent
Define persistent variable
Superior class relationship
atan, atanh
persistent
superiorto
Four-quadrant inverse tangent
Script M-files
Convert to unsigned integer
atan2
script
uint8, uint16, uint32
Round toward infinity
ceil
Construct complex data from real and imaginary
complex
Control Flow
Debugging
components
Complex conjugate
Terminate execution of for loop or while loop
Clear breakpoints
conj
break
dbclear

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education