mexPrintf message doesn't show on matlab command window
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!