Matlab Quick Reference Page 3

ADVERTISEMENT

Resume execution
Compare the first n characters of strings
Regularly spaced vector
dbcont
strncmp
: (colon)
Change local workspace context
Compare the first n characters of strings, ignoring case
dbdown
strncmpi
Enable MEX-file debugging
String search and replace
dbmex
strrep
Special Variables and Constants
Quit debug mode
First token in string
dbquit
strtok
The most recent answer
ans
Display function call stack
Vertical concatenation of strings
dbstack
strvcat
Identify the computer on which MATLAB is running
computer
dbstatus
List all breakpoints
symvar
Determine symbolic variables in an expression
Floating-point relative accuracy
eps
Execute one or more lines from a breakpoint
Produce the TeX format from a character string
dbstep
texlabel
Imaginary unit
i
Set breakpoints in an M-file function
Convert string to upper case
dbstop
upper
Infinity
Inf
List M-file with line numbers
dbtype
Input argument name
inputname
Change local workspace context
dbup
String to Number Conversion
Imaginary unit
j
Create character array (string)
Not-a-Number
char
NaN
Function Handles
Integer to string conversion
int2str
nargin,
Number of function arguments
nargout
Convert a matrix into a string
function_ha
mat2str
MATLAB data type that is a handle to a function
Validate number of output arguments
ndle
nargoutchk
Number to string conversion
num2str
Return information about a function handle
Ratio of a circle’s circumference to its diameter,
functions
pi
Write formatted data to a string
sprintf
Constructs a function name string from a function handle
Largest positive floating-point number
func2str
realmax
Read string under format control
sscanf
str2func
Constructs a function handle from a function name string
realmin
Smallest positive floating-point number
Convert string to double-precision value
str2double
varargin,
String to matrix conversion
Pass or return variable numbers of arguments
str2mat
varargout
Character String Functions
String to number conversion
str2num
General
Time and Dates
abs
Absolute value and complex magnitude
Radix Conversion
Interpret strings containing MATLAB expressions
Calendar
eval
calendar
Binary to decimal number conversion
bin2dec
Real part of complex number
Current time as a date vector
real
clock
Decimal to binary number conversion
dec2bin
MATLAB string handling
Elapsed CPU time
strings
cputime
Decimal to hexadecimal number conversion
dec2hex
Current date string
date
Hexadecimal to decimal number conversion
hex2dec
Serial date number
datenum
String to Function Handle Conversion
Hexadecimal to double number conversion
hex2num
Date string format
datestr
Constructs a function name string from a function handle
func2str
Date components
datevec
Matrix Manipulation
Constructs a function handle from a function name string
str2func
End of month
eomday
Elementary Matrices and Arrays
Elapsed time
etime
Construct a block diagonal matrix from input arguments
Current date and time
blkdiag
now
String Manipulation
Identity matrix
Stopwatch timer
eye
tic, toc
Strip trailing blanks from the end of a string
deblank
Day of the week
Generate linearly spaced vectors
weekday
linspace
Find one string within another
findstr
Generate logarithmically spaced vectors
logspace
Convert string to lower case
lower
Number of elements in a matrix or cell array
numel
String concatenation
strcat
Matrix Manipulation
Create an array of all ones
ones
Compare strings
strcmp
cat
Concatenate arrays
Uniformly distributed random numbers and arrays
rand
Compare strings, ignoring case
strcmpi
Diagonal matrices and diagonals of a matrix
diag
Normally distributed random numbers and arrays
randn
Justify a character array
strjust
Flip matrices left-right
fliplr
Create an array of all zeros
zeros
Find possible matches for a string
strmatch
Flip matrices up -down
flipud

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education