フィルターのクリア

Is it possible to call macro functions in Simulink?

2 ビュー (過去 30 日間)
Szabolcs Fodor
Szabolcs Fodor 2020 年 2 月 25 日
Dear all,
Is it possible to call macro functions defined in C header files in Simulink?
For instanceand for the sake of argument, you have the following header file (errPro.h) :
#ifndef ERRPRO_H_
#define ERRPRO_H_
#define MAXi(a, b) (((a)>(b))?(a):(b))
#define xyz(a, b) ((a)<(b))
#endif
After including this particular header file to the right place (Simulation Target -> Header File), is it possible to call these macro functions in Simulink? I know that it is possible to call functions with c caller in Simulink, but I was not able to figure it out with macro functions.
Any help is highly appriciated, so thanks in advance.
Best regards,
Szabi

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Environment Customization についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by