|
|
Re: Pass arbitrary pointer type between mex functions
Posted:
May 24, 2012 2:37 AM
|
|
"Cody" wrote in message <jpk840$ko1$1@newscl01ah.mathworks.com>...
> Thanks for the response James. Since there's not an elegant solution to pass this pointer back to the Matlab workspace,
Why not cast the pointer to uint64, or double, or 1x8 uint8 array (whatever that has the same size as a ppointer) and return it to MATLAB as mxArray?
>do you know if there is a way I can store the user defined pointer in a memory location so that different mex functions, called separately from the Matlab command line can access this memory location and therefore the pointer?
Just pass the pointers in mxArray as I explain above.
Brunp
|
|