- Page 1 and 2: Reference Version 2.1 MATLAB® C++
- Page 3 and 4: Reference Page Format .............
- Page 5 and 6: condest ...........................
- Page 7 and 8: frewind ...........................
- Page 9 and 10: nextpow2...........................
- Page 11 and 12: sparse ............................
- Page 13 and 14: 1 Reference Page Format This refere
- Page 15 and 16: 3 Calling Conventions This section
- Page 19 and 20: 7 The mwArray Class The mwArray cla
- Page 21 and 22: 9 This constructor evaluates the in
- Page 23 and 24: 11 mwArray field(const char *fieldn
- Page 25: 13 An array (a matrix is a special
- Page 29 and 30: 17 For example, this code demonstra
- Page 31 and 32: 0Arithmetic Operators Purpose Matri
- Page 33 and 34: 0Relational Operators < > = == != P
- Page 35 and 36: 0Logical Operators Purpose Logical
- Page 37 and 38: 0acos, acosh Purpose Inverse cosine
- Page 39 and 40: 0acsc, acsch Purpose Inverse coseca
- Page 41 and 42: 0angle Purpose Phase angle C++ Prot
- Page 43 and 44: 0asec, asech Purpose Inverse secant
- Page 45 and 46: 0atan, atanh Purpose Inverse tangen
- Page 47 and 48: alance 0balance Purpose Improve acc
- Page 49 and 50: eta, betainc, betaln 0beta, betainc
- Page 51 and 52: icg C++ Syntax #include "matlab.hpp
- Page 53 and 54: icgstab C++ Syntax #include "matlab
- Page 55 and 56: itand_func 0bitand_func Purpose Bit
- Page 57 and 58: itget 0bitget Purpose Get bit C++ P
- Page 59 and 60: itor_func 0bitor_func Purpose Bit-w
- Page 61 and 62: itshift 0bitshift Purpose Bit-wise
- Page 63 and 64: lanks 0blanks Purpose A string of b
- Page 65 and 66: 0cart2pol Purpose Transform Cartesi
- Page 67 and 68: 0cat Purpose Concatenate arrays C++
- Page 69 and 70: 0ceil Purpose Round toward infinity
- Page 71 and 72: 0cell2struct Purpose Cell array to
- Page 73 and 74: 0cellfun Purpose Apply a function t
- Page 75 and 76: 0cellstr Purpose Create cell array
- Page 77 and 78:
C++ Syntax #include "matlab.hpp" MA
- Page 79 and 80:
0chol Purpose Cholesky factorizatio
- Page 81 and 82:
0cholinc Purpose Incomplete Cholesk
- Page 83 and 84:
0clock_func Purpose Current time as
- Page 85 and 86:
0colmmd Purpose Sparse column minim
- Page 87 and 88:
0compan Purpose Companion matrix C+
- Page 89 and 90:
0cond Purpose Condition number with
- Page 91 and 92:
0condest Purpose 1-norm matrix cond
- Page 93 and 94:
0conv Purpose Convolution and polyn
- Page 95 and 96:
0corrcoef Purpose Correlation coeff
- Page 97 and 98:
0cot, coth Purpose Cotangent and hy
- Page 99 and 100:
0cplxpair Purpose Sort complex numb
- Page 101 and 102:
0csc, csch Purpose Cosecant and hyp
- Page 103 and 104:
0cumsum Purpose Cumulative sum C++
- Page 105 and 106:
date Purpose Current date string C+
- Page 107 and 108:
datestr 0datestr Purpose Date strin
- Page 109 and 110:
datevec MATLAB Syntax 97 C = dateve
- Page 111 and 112:
deal 0deal Purpose Deal inputs to o
- Page 113 and 114:
dec2base 0dec2base Purpose Decimal
- Page 115 and 116:
dec2hex 0dec2hex Purpose Decimal to
- Page 117 and 118:
del2 0del2 Purpose Discrete Laplaci
- Page 119 and 120:
diag 0diag Purpose Diagonal matrice
- Page 121 and 122:
disp 0disp Purpose Display text or
- Page 123 and 124:
double_func 0double_func Purpose Co
- Page 125 and 126:
0eigs Purpose Find a few eigenvalue
- Page 127 and 128:
0ellipj Purpose Jacobi elliptic fun
- Page 129 and 130:
0empty Purpose Return an empty doub
- Page 131 and 132:
0eomday Purpose Endofmonth C++ Prot
- Page 133 and 134:
0erf, erfc, erfcx, erfinv Purpose E
- Page 135 and 136:
0etime Purpose Elapsed time C++ Pro
- Page 137 and 138:
0expint Purpose Exponential integra
- Page 139 and 140:
0expm1 Purpose Matrix exponential v
- Page 141 and 142:
0expm3 Purpose Matrix exponential v
- Page 143 and 144:
factor 0factor Purpose Prime factor
- Page 145 and 146:
feof 0feof Purpose Test for end-of-
- Page 147 and 148:
feval 0feval Purpose Function evalu
- Page 149 and 150:
fft2 0fft2 Purpose Two-dimensional
- Page 151 and 152:
fftshift 0fftshift Purpose Shift DC
- Page 153 and 154:
fgets 0fgets Purpose Return the nex
- Page 155 and 156:
filter 0filter Purpose Filter data
- Page 157 and 158:
filter2 0filter2 Purpose Two-dimens
- Page 159 and 160:
findstr 0findstr Purpose Find one s
- Page 161 and 162:
fliplr 0fliplr Purpose Flip matrice
- Page 163 and 164:
floor 0floor Purpose Round towards
- Page 165 and 166:
fmin 0fmin Purpose Minimize a funct
- Page 167 and 168:
fminbnd 0fminbnd Purpose Minimize a
- Page 169 and 170:
fminbnd 157 mwArray *out2, mwArray
- Page 171 and 172:
fminbnd MATLAB Syntax 159 x = fminb
- Page 173 and 174:
fmins C++ Syntax #include "matlab.h
- Page 175 and 176:
fminsearch C++ Prototype mwArray fm
- Page 177 and 178:
fminsearch C++ Syntax #include "mat
- Page 179 and 180:
fopen 0fopen Purpose Open a file or
- Page 181 and 182:
fprintf 0fprintf Purpose Write form
- Page 183 and 184:
freqspace 0freqspace Purpose Determ
- Page 185 and 186:
fscanf 0fscanf Purpose Read formatt
- Page 187 and 188:
ftell 0ftell Purpose Get file posit
- Page 189 and 190:
funm 0funm Purpose Evaluate functio
- Page 191 and 192:
fzero 0fzero Purpose Zero of a func
- Page 193 and 194:
fzero MATLAB Syntax 181 x = fzero(f
- Page 195 and 196:
0gcd Purpose Greatest common diviso
- Page 197 and 198:
0gmres Purpose Generalized Minimum
- Page 199 and 200:
0gradient Purpose Numerical gradien
- Page 201 and 202:
0griddata Purpose Data gridding C++
- Page 203 and 204:
0hankel Purpose Hankel matrix C++ P
- Page 205 and 206:
0hex2dec Purpose IEEE hexadecimal t
- Page 207 and 208:
0hilb Purpose Hilbert matrix C++ Pr
- Page 209 and 210:
0i Purpose Imaginary unit C++ Proto
- Page 211 and 212:
0ifft Purpose Inverse one-dimension
- Page 213 and 214:
0ifftn Purpose Inverse multidimensi
- Page 215 and 216:
0ind2sub Purpose Subscripts from li
- Page 217 and 218:
0inpolygon Purpose Detect points in
- Page 219 and 220:
0interp1 Purpose One-dimensional da
- Page 221 and 222:
0interp2 Purpose Two-dimensional da
- Page 223 and 224:
0interp5 Purpose Two-dimensional bi
- Page 225 and 226:
0interpft Purpose One-dimensional i
- Page 227 and 228:
0inv Purpose Matrix inverse C++ Pro
- Page 229 and 230:
0ipermute Purpose Inverse permute t
- Page 231 and 232:
C++ Syntax #include "matlab.hpp" MA
- Page 233 and 234:
0iscomplex Purpose Matrix complexit
- Page 235 and 236:
0isstr Purpose Detect strings This
- Page 237 and 238:
0kron Purpose Kronecker tensor prod
- Page 239 and 240:
0legendre Purpose Associated Legend
- Page 241 and 242:
0lin2mu Purpose Linear to mu-law co
- Page 243 and 244:
0load Purpose Load up to 16 mwArray
- Page 245 and 246:
0log2 Purpose Base 2 logarithm and
- Page 247 and 248:
0logical Purpose Convert numeric va
- Page 249 and 250:
0logspace Purpose Generate logarith
- Page 251 and 252:
0lscov Purpose Least squares soluti
- Page 253 and 254:
C++ Prototype mwArray lsqnonneg(con
- Page 255 and 256:
C++ Syntax #include "matlab.hpp" mw
- Page 257 and 258:
0lu Purpose LU matrix factorization
- Page 259 and 260:
See Also MATLAB luinc Calling Conve
- Page 261 and 262:
0mat2str Purpose Convert a matrix i
- Page 263 and 264:
0mean Purpose Average or mean value
- Page 265 and 266:
0meshgrid Purpose Generate X and Y
- Page 267 and 268:
0min Purpose Minimum elements of an
- Page 269 and 270:
0mu2lin Purpose Mu-law to linear co
- Page 271 and 272:
0nargchk Purpose Check number of in
- Page 273 and 274:
0ndims Purpose Number of array dime
- Page 275 and 276:
0nnls Purpose Nonnegative least squ
- Page 277 and 278:
0nonzeros Purpose Nonzero matrix el
- Page 279 and 280:
0normest Purpose 2-norm estimate C+
- Page 281 and 282:
0null Purpose Null space of a matri
- Page 283 and 284:
0num2str Purpose Number to string c
- Page 285 and 286:
0ode45, ode23, ode113, ode15s, ode2
- Page 287 and 288:
0odeget Purpose Extract properties
- Page 289 and 290:
0ones Purpose Create an array of al
- Page 291 and 292:
0optimset Purpose Create or edit op
- Page 293 and 294:
pascal 0pascal Purpose Pascal matri
- Page 295 and 296:
pcg C++ Syntax #include "matlab.hpp
- Page 297 and 298:
perms 0perms Purpose All possible p
- Page 299 and 300:
pi 0pi Purpose Ratio of a circle’
- Page 301 and 302:
planerot 0planerot Purpose Given's
- Page 303 and 304:
poly 0poly Purpose Polynomial with
- Page 305 and 306:
polyder 0polyder Purpose Polynomial
- Page 307 and 308:
polyfit 0polyfit Purpose Polynomial
- Page 309 and 310:
polyvalm 0polyvalm Purpose Matrix p
- Page 311 and 312:
primes 0primes Purpose Generate lis
- Page 313 and 314:
qmr 0qmr Purpose Quasi-Minimal Resi
- Page 315 and 316:
qr 0qr Purpose Orthogonal-triangula
- Page 317 and 318:
qrinsert 0qrinsert Purpose Insert c
- Page 319 and 320:
quad_func, quad8 307 mwArray quad8(
- Page 321 and 322:
qz 0qz Purpose QZ factorization for
- Page 323 and 324:
0rand Purpose Uniformly distributed
- Page 325 and 326:
0randperm Purpose Random permutatio
- Page 327 and 328:
0rat, rats Purpose Rational fractio
- Page 329 and 330:
0real Purpose Real part of complex
- Page 331 and 332:
0realmin Purpose Smallest positive
- Page 333 and 334:
0rem Purpose Remainder after divisi
- Page 335 and 336:
0reshape Purpose Reshape array C++
- Page 337 and 338:
0residue Purpose Convert between pa
- Page 339 and 340:
0roots Purpose Polynomial roots C++
- Page 341 and 342:
0rot90 Purpose Rotate matrix 90 deg
- Page 343 and 344:
0rref Purpose Reducedrowechelonform
- Page 345 and 346:
save 0save Purpose Save up to 16 mw
- Page 347 and 348:
sec, sech 0sec, sech Purpose Secant
- Page 349 and 350:
setfield 0setfield Purpose Set fiel
- Page 351 and 352:
setxor 0setxor Purpose Set exclusiv
- Page 353 and 354:
sign 0sign Purpose Signum function
- Page 355 and 356:
size 0size Purpose Array dimensions
- Page 357 and 358:
sortrows 0sortrows Purpose Sort row
- Page 359 and 360:
sparse 0sparse Purpose Create spars
- Page 361 and 362:
spdiags 0spdiags Purpose Extract an
- Page 363 and 364:
spfun 0spfun Purpose Apply function
- Page 365 and 366:
spline 0spline Purpose Cubic spline
- Page 367 and 368:
spparms, Vspparms 0spparms, Vspparm
- Page 369 and 370:
sprand 0sprand Purpose Sparse unifo
- Page 371 and 372:
sprandsym 0sprandsym Purpose Sparse
- Page 373 and 374:
sprintf MATLAB Syntax 361 s = sprin
- Page 375 and 376:
sqrtm 0sqrtm Purpose Matrix square
- Page 377 and 378:
std_func 0std_func Purpose Standard
- Page 379 and 380:
str2mat 0str2mat Purpose Form blank
- Page 381 and 382:
strcat 0strcat Purpose String conca
- Page 383 and 384:
strcmpi 0strcmpi Purpose Compare st
- Page 385 and 386:
strmatch 0strmatch Purpose Find pos
- Page 387 and 388:
strncmpi 0strncmpi Purpose Compare
- Page 389 and 390:
strtok 0strtok Purpose First token
- Page 391 and 392:
struct2cell 0struct2cell Purpose St
- Page 393 and 394:
sub2ind 0sub2ind Purpose Single ind
- Page 395 and 396:
sum 0sum Purpose Sum of array eleme
- Page 397 and 398:
svds 0svds Purpose A few singular v
- Page 399 and 400:
symmmd 0symmmd Purpose Sparse symme
- Page 401 and 402:
tan, tanh 0tan, tanh Purpose Tangen
- Page 403 and 404:
tobool 0tobool Purpose Convert an a
- Page 405 and 406:
trace 0trace Purpose Sum of diagona
- Page 407 and 408:
tril 0tril Purpose Lower triangular
- Page 409 and 410:
union_func 0union_func Purpose Set
- Page 411 and 412:
unwrap 0unwrap Purpose Correct phas
- Page 413 and 414:
vander 0vander Purpose Test matrix
- Page 415 and 416:
warning 0warning Purpose Display wa
- Page 417 and 418:
wilkinson 0wilkinson Purpose Wilkin
- Page 419 and 420:
zeros 0zeros Purpose Create an arra
- Page 421 and 422:
Utility Routine Reference Utility R
- Page 423 and 424:
mwGetErrorMsgHandler 0mwGetErrorMsg
- Page 425 and 426:
mwGetPrintHandler 0mwGetPrintHandle
- Page 427 and 428:
mwSetExceptionMsgHandler 0mwSetExce
- Page 429 and 430:
mwSetLibraryAllocFcns 417 therefore