Hi everyone,
I started working with mex on matlab to build a c code and I wrote a very simple code (main.c) to begin with :
#include "stdio.h"#include "stdlib.h"#include "mex.h"void main(){ mexPrintf("Hello world");}
when I type mex main.c in a matlab script everything goes well and I have this message:
"Building with 'gcc'.MEX completed successfully."
but I don't see the message "Hello world", I tried printf() too without success, does anyone know why the message doesn't appear on the matlab window please ?
Thanks in advance for your help.
-J
Best Answer