なぜラッパー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 Center および File ExchangeAuthor 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!