なぜラッパーS-Fu​nction中ではC​標準ライブラリのpr​intfが実行されな​いのですか?

조회 수: 1 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2010년 1월 27일
C-MEX S-Function中でのprintfは問題なく使用することができましたが、S-Function中から呼び出すラッパーコード内ではprintfによる表示ができません。

채택된 답변

MathWorks Support Team
MathWorks Support Team 2010년 1월 27일
ラッパーコード内ではprintfは使用することができません。simstruc.hに定義されているSSPRINTF関数を使用してください。
なお、SSPRINTF関数を使用するには、次のようにsimstruc.hをインクルードする必要があります。
#include "simstruc.h"

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Blocks Using C MEX S-Functions에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!