-
&
() (parentheses operator)
*
+
.*
./
.\
.^
.'
/
:
<1> <2>
:
(colon operator)
<<
>>
[]
[]
(bracket operator)
\
^
'
abs()
conflict with standard function
and_func()
arguments
default
functions as
input <1> <2>
passing convention
input list as a cell array
left-hand side
mwVarargin
object
mwVarargout
object
optional <1> <2>
order
output
passing convention
preallocating
pasing any number of inputs
pasing any number of outputs
summary of calling conventions
to load()
to save()
varargin
varargout
arithmetic operator functions
arity
of operators
array
as argument, efficiency
concatenation
const
reference to
converting C++ to mwArray
creating
creation functions <1> <2>
See also creating <1> <2>
deleting elements from
extracting data
indexing
input
string
input and output
input via load()
<1> <2>
logical
index
modifying contents <1> <2>
null
output
string
output via save()
<1> <2>
printing <1> <2>
string <1> <2>
value semantics
Array Access and Creation Library
array creation routines
array information functions
array operators
arrays
access routines
basic information functions
common programming tasks
converting numeric to character
converting sparse to full format
converting to sparse matrix
creating cell arrays
creating structures
determining number of nonzero elements
indices
initializing with data
logical
creating
manipulation functions
multidimensional character arrays
numeric arrays
of characters
sparse matrices
ASCII data
and fgetl()
and fgets()
assignment
and indexing <1> <2>
creating cell arrays
assignment statements
and constructors
copy-on-write
creating arrays
average()
base number conversion
binary data
and fgetl()
and fgets()
binary file I/O
bitand_func()
bitor_func()
bitwise functions
blank character
used as padding
building applications
on Microsoft Windows
on UNIX
other methods
troubleshooting mbuild
C++
compared to MATLAB
compiler
installation
required features
control structure
exception handling
function calling conventions <1> <2>
indexing
keyword
catch
catch
<1> <2>
const
for
throw
try
logical values
operators
arithmetic
relational
vs. MATLAB
overloading
stream-based I/O <1> <2>
subscripts
syntax
example
vs. MATLAB
variable declaration
call by reference <1> <2>
call by value <1> <2>
calling conventions
exceptions
mapping rules
summary
table of
calling library functions
calling operators
casts
cat
catch
catch
block
catch
-block <1> <2>
and mwException
cell array functions
cell array indexing
nested cell arrays
referencing a cell
referencing the contents of a cell
types of
with cell()
member function
cell arrays
concatentation
converting numeric arrays
converting to structures
creating
creating by assignment
displaying
cellhcat()
using
cerr
<1> <2>
char_func()
character arrays
creating <1> <2>
from numeric arrays
multidimensional
character string functions
base number conversion
general
string operations
string tests
string to number conversion
cin
<1> <2>
matrix input <1> <2>
clock()
clock_func()
closing files
colon
generating sequences
colon operator
in C++
colon()
<1> <2> <3>
shorthand for
use instead of :
with a logical index <1> <2>
column vector
indexing as
column-major order <1> <2> <3>
and initializing mwArray
and static C++ data
compiler
C++
installation
required features
changing default on PC
changing default on UNIX
choosing on UNIX
complex functions
compopts.bat
<1> <2>
concatenating
arrays
concatenation
horizontal
of subscripts
vertical <1> <2>
const
constants, special
constructing an mwVarargin
object
constructing an mwVarargout
object
constructors <1> <2>
and data arrays
mwArray
table of
control structure, MATLAB vs. C++
conventions
array access routine names
conversion
efficiency
from mwArray
to mxArray
pointer
to scalar
MATLAB to C++
string to number
to mwArray
from a scalar
from a string
from array
from mwSubArray
from mxArray pointer
user-defined
conversion, base number
coordinate system transforms
copy-on-write assignment
correlation
cos()
conflict with standard function
cout
<1> <2>
array output <1> <2>
creating
arrays
example program
string
mwArray
mwIndex
objects
new exception class
ctranspose()
<1> <2>
use instead of '
data
reading with load()
writing with save()
data analysis and Fourier transform functions
basic operations
correlation
filtering and convolution
finite differences
Fourier transforms
sound and audio
data conversions <1> <2>
See also conversion
data interpolation
data type functions
object functions
date and time functions
basic
current date and time
date
timing
dates
basic functions
dates, current
declarations
of variables
DECLARE_FEVAL_TABLE
DefaultPrintHandler()
C++ code
deletion
and indexing
differences between C++ and MATLAB
dim
argument for cat
<1> <2>
directory organization
Microsoft Windows
UNIX
disp()
distributing applications
packaging
do_raise()
double_func()
efficiency
constructors vs. assignment
indexing
of conversions
size member functions
space-time tradeoff
eigenvalues
empty array
empty()
<1> <2> <3>
end
end of line
and fgetl()
and fgets()
end()
END_FEVAL_TABLE
environment variable
library path
error functions
error handler routine
registering
replacing default
error messages
list of
printing to GUI
error()
errors
and exceptions
errors handling
examples
calling library routines
creating arrays
error handling
file I/O with fprintf()
how to compile and link
load()
and save()
passing functions as arguments
print handling
Microsoft Windows
X Window system
rewriting roots()
in C++
strstream
, using
writing simple functions
exception handling
exception handling functions
exceptions
and function composition
available classes
deriving new
if compiler doesn't support
output format
printing
required C++ feature
throwing with MLM_THROW
macros
used for handling errors
using mwArray
in message
exp()
conflict with standard function
exponential functions
expression
logical
expressions
arithmetic <1> <2>
function call
syntax
ExtractData()
ExtractScalar()
factorization utilities
fclose()
feval
function table
mlfFevalTableSetup()
mlfFuncTabEnt
type
setting up
feval
macros
DECLARE_FEVAL_TABLE
END_FEVAL_TABLE
FEVAL_ENTRY
requirements for function
what they replace
FEVAL_ENTRY
fgetl()
and binary data
and end of line
fgets()
and binary data
and end of line
file I/O functions
binary
file positioning
formatted I/O
opening and closing
string conversion
file opening and closing
files
binary file I/O
formatted I/O
import and export functions
positioning
string conversion
filtering and convolution
finite differences
fopen()
for
for
-loop, index variable
formatted I/O
Fourier transform functions
Fourier transforms
fprintf()
<1> <2> <3>
conflict with standard function
FreezeData()
fscanf()
_func
suffix
function-functions
how they are called
numerical integration with ODE solvers
ODE option handling
ODE solvers
optimization and root finding
passing function name
functions
call by value
calling conventions <1> <2>
MATLAB vs. C++ <1> <2>
cat
documented in online reference
indexing result of
MEX function
name conflicts
number of arguments
order of arguments
passed as argument
pointer type
mwErrorFunc
mwExceptionFunc
mwMemAllocFunc
mwMemCallocFunc
mwMemReallocFunc
mwOutputFunc
renamed functions
return values, multiple
side effects
signatures
vectorized
writing new
geometric analysis
GetData()
graphical user interface (GUI)
output to
graphics applications
trouble starting
GUI
output to
Handle Graphics
header files
including <1> <2>
horzcat()
use instead of []
using
i()
I/O streams <1> <2>
if
indexing
and assignment <1> <2>
and deletion <1> <2> <3>
and function call
and ones()
base
C++ vs. MATLAB
cell arrays
concatenating subscripts
dimensions and subscripts
efficiency <1> <2>
implementation
introduction
like for
-loop
logical
mwArray
mwIndex
mwSubArray
N-dimensional <1> <2>
one-dimensional
similar to for
-loop
structure array
table of examples
terminology
types of <1> <2>
with colon
with mlfEnd()
indexing functions
indices
how MATLAB calculates
initializing
Microsoft Windows
X Window system
initializing arrays with data
input
arguments
optional
example <1> <2> <3>
format <1> <2>
load()
<1> <2>
mwArray
<1> <2> <3>
stream <1> <2>
installing the library
PC details
UNIX details
with MATLAB
without MATLAB
interprocess communication
keyword
C++
catch
catch
const
for
throw
try
MATLAB
catch
end
for
if
switch
try
while
layering
C++ interface
layering, C++ interface
LD_LIBRARY_PATH
run-time libraries
ldivide()
LIBPATH
run-time libraries
library path
licensing
stand-alone applications
linear algebra
linear equations <1> <2>
link
library order
load()
<1> <2> <3> <4>
nonstandard calling convention
log()
conflict with standard function
logical
and relational operators
array
indexing
values, MATLAB vs. C++
logical arrays
creating
logical flag
logical functions
logical index
logical indexing
N-dimensional
logical operator functions
logical()
loops
and vectorized function
explicit
macros
MLM_THROW
macros, feval
DECLARE_FEVAL_ENTRY
DECLARE_FEVAL_TABLE
END_FEVAL_TABLE
requirements for function
what they replace
makefile
malloc()
MAT-files
.mat
extension
and named variables
created by load()
created by save()
import and export functions
importing and exporting
read by load()
transmit in binary mode
written to with save()
math functions
complex
coordinate system transforms
exponential
number theoretic
rounding and remainder
specialized
trigonometric
MATLAB
Built-in Library
link order
C++ Math Library
functions
compared to C++
control structure
errors
function calling conventions
functions <1> <2>
calling
Handle Graphics
indexing
efficiency
input and output
logical
operators
values
MEX-file
M-File Math Library
link order
operators
array
functional equivalents
indexing
input and output
logical
mathematical <1> <2>
overloading
relational
unavailable
vs. C++
string array
subscripts
efficiency
syntax, compared to C++
vs. C++
example
MATLAB Built-In Library
calling conventions
MATLAB C++ Math Library
installing
PC details
UNIX details
with MATLAB
without MATLAB
relationship to C Math Library
unsupported MATLAB features
utility routines
MATLAB Engine
MATLAB Math and Graphics Run-Time Library Installer
MATLAB M-File Math Library
calling conventions
matlab.hpp
including <1> <2>
matrices, elementary functions
matrices, specialized functions
matrix
analysis functions
array operators
functions
operators
matrix manipulation functions
mbuild
-setup option
-setup option on PC
-setup option on UNIX
syntax and options
on Microsoft Windows
on UNIX
troubleshooting
verbose option on PC
verbose option on UNIX
member functions, of mwArray
<1> <2> <3>
memory allocation
writing a calloc
routine
writing a deallocation routine
writing a malloc
routine
writing a reallocation routine
memory allocation functions
memory management
and performance
arrays
avoiding destructor call
function pointer types
memory leaks
mwArray
mwSetLibraryAllocFcns()
setting up your own
message display
MessageDialog
, Motif widget
MEX-files
MFC42.dll
mglinstaller
mglinstaller.exe
Microsoft Windows
building stand-alone applications
directory organization
MessageBox
PopupMessageBox()
C code
print handling
minus()
mldivide()
mlfFevalTableSetup()
mlfFuncp
function pointer type <1> <2>
mlfNnz()
MLM_THROW
macros
MLM_THROW0()
Motif
MessageDialog
widget
print handler
mpower()
mrdivide()
mtimes()
multidimensional array functions
multidimensional arrays
concatenating
creating by assignment
creating with constructors
of characters
multidimensional cell arrays
concatenating
mwArray
cell member function
class interface
constructors
converting
to Boolean
to mxArray
pointer
to scalar
creating
complex
example
efficiency of size functions
exception messages, in
extracting mxArray *
GetData()
indexing
see also indexing
input
marshalling
member functions
cell()
constructors
data access
ExtractData()
ExtractScalar()
field()
memory management
size
Size()
ToString()
memory management
modifying contents
operator delete()
operator double()
operator new()
operator()
operators
array
defining new
see also operators
output
pointer to
print handler
getting
setting
reading from disk <1> <2>
reference count <1> <2>
saving to disk <1> <2>
SetData()
size functions
string
user-defined conversions
mwArray
operators
matrix
mwArray
deleting elements from
mwBadAlloc
class
mwChainError
class
mwDisplayException()
mwDomainError
class
mwErrorFunc
mwException
available subclasses
deriving classes from
mwException
class <1> <2> <3> <4> <5>
mwExceptionFunc
mwGetErroMsgrHandler()
mwGetPrintHandler()
<1> <2>
mwIllegalOperation
class
mwIndex
class
mwLogicError
class
mwMemAllocFunc
mwMemCallocFunc
mwMemReallocFunc
mwOutputFunc
mwOverflowError
class
mwRangeError
class <1> <2>
mwRuntimeError
class
mwSetErrorMsgHandler()
mwSetErrorMsgHandler()
routine
mwSetExceptionMsgHandler()
mwSetLibraryAllocFcns()
mwSetPrintHandler()
<1> <2>
calling first
mwSubArray
converting to mwArray
mwSubclassResponsibility
class
mwVarargin
object
mwVarargin> class
mwVarargout
object
mwVarargout> class
mxArray
array access routines
conversion to mwArray
<1> <2>
mxArray *
converting to mwArray
name conflicts
table of
naming conventions
array access routines
N-dimensional indexing <1> <2>
selecting a matrix of elements
selecting a single element
selecting a vector of elements
nonzero elements
determining number of
not_func()
null array <1> <2>
and array deletion
number theoretic functions
numeric arrays
converting to cell arrays
converting to character arrays
creating
numerical integration
numerical linear algebra
eigenvalues and singular values
factorization utilities
linear equations
matrix analysis
matrix functions
object functions
ODE option handling
ODE solvers
offsets
for indexing
one-dimensional indexing
range for index
selecting a matrix
selecting a single element
selecting a vector
table of examples
with a logical index
ones()
and indexing
opening files
operator delete()
operator double()
operator new()
operator&()
operator()
operator**(),
unavailability of
operator*=()
operator<<()
<1> <2>
operator>>()
<1> <2>
operators
arity
array <1> <2>
C++ syntax
defining new
functional equivalents
indexing
list of
mathematical
MATLAB
unavailable
matrix <1> <2>
miscellaneous
mwArray
overloading
arity
precedence
precedence
and parentheses
overloading
relational <1> <2>
logical result
return value
stream
vectorized
operators and special functions
arithmetic operators
bitwise functions
logical functions
logical operators
MATLAB as a programming language
message display
set operators
special operators
optimization and root finding
options file
locating on UNIX
making changes persist
on UNIX
options files
combining customized on PC
locating on PC
locating on UNIX
making changes persist
on PCs
modifying on PC
modifying on UNIX
PC
purpose
temporarily changing on PC
temporarily changing on UNIX
options, mbuild
on Microsoft Windows
on UNIX
or_func()
order
link
of call to mwSetPrintHandler()
ordinary differential equations
option handling
solvers
output
and graphical user interface
arguments
optional
example <1> <2> <3>
format <1> <2>
mwArray
<1> <2>
save()
<1> <2>
stream <1> <2>
to GUI
packaging stand-alone applications
parentheses
and operator precedence
indexing operator
pascal_func()
(PC only)
PATH
run-time libraries
performance
and memory manager
data type conversion
See also efficiency
plus()
<1> <2>
polynomial and interpolation functions
data interpolation
geometric analysis
polynomials
spline interpolation
polynomial root-finder
polynomials
PopupMessageBox()
Microsoft Windows C code
X Window system C code
power()
precedence, of operators
print handlers
default, C++ code
getting
Microsoft Windows example
mwGetPrintHandler()
mwSetPrintHandler()
providing your own
setting
X Window system example
print handling functions
printing
array <1> <2>
exception objects
See also output
quad_func()
quadrature
ramp()
use instead of :
ramps
creating
rdivide()
<1> <2>
reallog()
reallog10()
realpow()
reference
const
reference count <1> <2>
registering functions with feval()
relational operator functions
list of
remainder functions
reordering algorithms
response file
return values, multiple <1> <2>
roots()
rounding functions
row2mat()
row-major order <1> <2>
run-time libraries
distributing
save()
<1> <2> <3> <4>
nonstandard calling convention
scalar expansion
scalars
converting to mwArray
scanf()
sequences, generating functions
set operator functions
SetData()
settings
compiler
linker
SHLIB_PATH
run-time libraries
side effects
sin()
conflict with standard function
singular values
size
determining array size
size()
sound and audio
sparse matrix
converting numeric array
converting to full matrix format
creating
creating from data
sparse matrix functions
linear algebra
linear equations
list of
miscellaneous
reordering algorithms
special operator functions
specialized math functions
spline interpolation
sprintf()
conflict with standard function
sqrt()
conflict with standard function
sscanf()
stand-alone applications
building on Microsoft Windows
building on UNIX
distributing
licensing
std_func()
storage layout
column-major
MATLAB vs. C++
string array
input of
output of
string operations
string tests
string to number conversion
strings
converting to mwArray
creating
extracting data from
strstream
struct_func()
structure functions
structure indexing
accessing a field
accessing the contents of a field
assigning values to a field
assignment values to field elements
deleting elements
referencing a single structure
referencing nested structures
use of mwArray
field()
within cells
structures
converting cell arrays
converting to cell arrays
creating
using mlfStruct()
subscripting
how MATLAB calculates indices
subscripts
concatenation
logical
svd()
switch
syntax
C++ <1> <2>
feval
macros
indexing
library functions, documented online
MATLAB
subscripts
tan()
conflict with standard function
templates, required feature
temporary variables
and C++
avoiding when indexing
throw
<1> <2>
thunk functions
grouping in one file
handling one type of function
require C Math Library interface <1> <2>
writing
time, current
time/space trade-off
times()
timing functions
tobool()
<1> <2> <3>
ToString()
translating from MATLAB to C++
transpose()
<1> <2>
use instead of .'
trigonometric functions
conflict with standard functions
list of
troubleshooting
starting stand-alone graphics applications
try
try block
try
-block <1> <2>
two-dimensional indexing
table of examples
with logical indices
union_func()
UNIX
building stand-alone applications
directory organization
utility functions
error and exception handling
generating sequences
indexing
memory allocation
print handling
varargin
functions
varargout
functions
variable declaration, C++
vectorization <1> <2>
of functions <1> <2>
of operators
vertcat()
use instead of []
while
X Window system
initializing
PopupMessageBox()
C code
print handler
X Toolkit
XtPopup()
XtSetArg()
XtSetValues()
XmCreateMessageDialog()
xor_func()