Main Content
mxCreateDoubleScalar (Fortran)
Scalar, double-precision array initialized to specified value
Fortran Syntax
#include "fintrf.h" mwPointer mxCreateDoubleScalar(value) real*8 value
Description
Call mxCreateDoubleScalar
to create a scalar
mxArray
of type mxDouble
.
Description
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) |
Input Arguments
Output Arguments
Version History
Introduced before R2006a