Allocate page locked memory for output array in mex?
4 views (last 30 days)
James Lebak on 19 Apr 2012
Unfortunately this isn't possible in MATLAB today. The function mxCreateDoubleMatrix returns an mxArray, not a raw pointer, and mxArrays that get returned to MATLAB need to be freed by MATLAB.