What can the implicit type of mxGetPr return argument be?
Show older comments
The following code returns a compiler warning because the pointer retrieved is of incompatible type.
mwSize countDims[2] = {nP,1};
plhs[1] = mxCreateNumericArray(ndim,countDims,mxINT64_CLASS,mxREAL);
int* count;
count = mxGetPr(plhs[1]);
This appears to be the case no matter what integer type I use in mxCreateNumericArray, or whether I use int, short etc.
1 Comment
Peter Cotton
on 17 Mar 2011
Accepted Answer
More Answers (1)
Jan
on 18 Feb 2011
1 vote
1 Comment
Peter Cotton
on 16 Mar 2011
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!