mxCreateDoubleMatrix - what value is used to initialize the array ? Documentation incomplete
Show older comments
For applications built with the mex -R2018a command, the function initializes each data element to 0.
For all other mex release-specific build options, the function sets each element in the pr array. If ComplexFlag is mxCOMPLEX, then the function sets the pi array to 0.
The documentation is incomplete to my understanding.
What exactly is written to each element in the pr array when I compile without -R2018a (which is what I use by default) ?
Does the answer differ between mxREAL and mxCOMPLEX?
1 Comment
Germain Pham
on 7 Aug 2025
Accepted Answer
More Answers (0)
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!