MATLAB COMPILER RELEASE NOTES User's Guide Page 196

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 195
mbrealvector
7-18
7mbrealvector
Purpose Assert variable is a real vector.
Syntax mbrealvector(n)
Description The statement
mbrealvector(x)
causes the MATLAB Compiler to impute that x is a real vector. At runtime, if
mbrealvector determines that x holds a value other than a real vector,
mbrealvector issues an error message and halts execution of the MEX-file.
mbrealvector t ells the MATLAB interpreter to check whether x holds a real
vector value. If
x does not, mbrealvector issues an error message and halts
execution of the M-file. The MATLAB interpreter does not use
mbrealvector
to impute x.
Note that
mbrealvector only tests x at the point in an M-file orMEX-file where
an
mbrealvector call appears. In other words, an mbrealvector call tests the
value of
x only once. If x becomes complex after the mbrealvector test,
mbrealvector cannot issue an error message.
mbrealvector defines a real vector a s any value that meets the criteria of both
mbreal and mbvector.Notethatmbrealvector considers real scalars to be real
vectorsaswell.
Example This code in MATLAB causes mbrealvector to generate an error message
because, although
n is a vector, n contains one imaginary number.
n = [5 2+3i];
mbrealvector(n)
??? Error using ==> mbreal
Argument to mbreal must be real.
See Also mbreal, mbrealscalar, mbvector, mcc
Page view 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 263 264

Comments to this Manuals

No comments