hi, i want to generate a signal from simulink that activate a m-file code. how can i do that?

1 回表示 (過去 30 日間)
Mehrshad Pakjoo
Mehrshad Pakjoo 2018 年 8 月 9 日
回答済み: Ameer Hamza 2018 年 8 月 9 日
hi, i want to generate a signal from simulink that activate a m-file code. how can i do that? my m-file is ok and run by itself.but iwant to run itself when i run my simulink model. can you help me?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2018 年 8 月 9 日
You can use MATLAB function block to use MATLAB code in Simulink. MATLAB does not support code generation for all the functions so you might need to use coder.externsic() to compile the Simulink model.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by