Hi,
I have a simple step of multiplying two double scalar variables in mex. Why not the type "mxDouble" support multiply? Must I convert the mxDouble to double in c? My sample code is as below. I don't know much about the mx* type data. Thank you.
mxDouble* x = mxGetPr(prhs[0]);mxDouble* y = mxGetPr(prhs[1]);plhs[0] = mxCreateDoubleScalar (x*y); % expression must have arithmetic or unscoped enum type
Best Answer