From: Akashdeep Kamra on
Hi

I have created a mex file to run a C program from Matlab. However, the file is not giving the expected result and I need to debug. How can I make the program print any variables. I have tried to use mexPrintf(variable) but it gives some error.
Please tell me the right way to do it.

Thanks.
Akash