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

1 view (last 30 days)
C-MEX S-Function中でのprintfは問題なく使用することができましたが、S-Function中から呼び出すラッパーコード内ではprintfによる表示ができません。

Accepted Answer

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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!