なぜラッパーS-Function中ではC標準ライブラリのprintfが実行されないのですか?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
C-MEX S-Function中でのprintfは問題なく使用することができましたが、S-Function中から呼び出すラッパーコード内ではprintfによる表示ができません。
Réponse acceptée
MathWorks Support Team
le 27 Jan 2010
ラッパーコード内ではprintfは使用することができません。simstruc.hに定義されているSSPRINTF関数を使用してください。
なお、SSPRINTF関数を使用するには、次のようにsimstruc.hをインクルードする必要があります。
#include "simstruc.h"
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Author Blocks Using C MEX S-Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!