Scalar, double-precision array initialized to specified value
#include "fintrf.h" mwPointer mxCreateDoubleScalar(value) real*8 value
Call mxCreateDoubleScalar
to create a scalar
mxArray
of type mxDouble
.
Call mxCreateDoubleScalar
to create a scalar double
mxArray
.
Call mxDestroyArray
when you finish using the
mxArray
.
You can use mxCreateDoubleScalar
instead of
mxCreateDoubleMatrix
in the following situation.
Replace: | With: |
---|---|
pm = mxCreateDoubleMatrix(1, 1, 0) mxCopyReal8ToPtr(value, mxGetDoubles(pm), 1) |
pm = mxCreateDoubleScalar(value) |