主要内容

c mexファイルファイルユーザーメッセージメッセージ

MATLAB®コマンドウィンドウテキスト出力するには关数关数mexprintfC/C ++の关数关数关数のののののの关数printfと同様コマンドにエラー情报およびを出力するに,,c行列APIの关数mexerrmsgidandtxtと关数MEXWARNMSGIDANDTXTを使用し。

たとえば,のコードスニペットはPRHS [0]を出力し。

char *buf;int buflen;if(mxgetString(prhs [0],buf,buflen)== 0){mexprintf(“输入字符串为:%s \ n”,buf);}

参考

||