Built-in Functions Flashcards
(39 cards)
help [insert word here]
Explains word.
Ex. Help, format, elfun, etc.
Demo
Shows MATLAB examples in help window
doc
Shows documentation page in help window
Quit
Exit
Close MATLAB
namelengthmax
63
who
Shows variables in command window
whos
Shows variables and information in command window
clear
Deletes variables
intmin (‘int8’)
intmax (‘int8’)
-128
127
intmin (‘int16’)
intmax (‘int16’)
Help!
intmin (‘int32’)
intmax (‘int32’)
Help!
format short
Answer in four decimal places
format long
Answer in 15 decimal places
Format loose
Double spaced
Format compact
Single spaced
fix (x)
Rounds towards zero
floor (x)
Rounds towards negative infinity
ceil
Rounds toward positive infinity
rem (x, y)
Returns remainder of x/y
mod (x, y)
Returns remainder of x/y. Mod (x, 0) returns x.
Sign (x)
Returns 1 or -1 depending on sign of x.
nthroot (x, y)
Returns the y- root of x.
exp (n)
Returns e^n
rand
Returns random number between 0 and 1