mexPrintf message doesn't show on matlab command window
古いコメントを表示
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
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Write C Functions Callable from MATLAB (MEX Files) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!