C Math Library Reference | ![]() ![]() |
Create and initialize a 1-by-1 array
C Prototype
mxArray *mlfScalar(double v);
Arguments
double v
Initial contents of the array
Description
This function creates a 1-by-1 array whose contents are initialized to the value of v
.
Example
mxArray *one = NULL; mlfAssign(&one, mlfScalar(1));
See Also
mlfComplexScalar
![]() | mlfReturnValue | mlfSetErrorHandler | ![]() |