I want to print the values of phrs to terminal and check their data type. I thought I got the first part:
To check prhs date type, i think you can use
mxGetClassName(prhs). To print its value, you need to dereference it again, as I remember correctly. For example:
double* data = mxGetPr(prhs); mexPrintf("Value: %f\n",data);
Note, mxGetPr, returns pointer to double, so left it in this example.