Simulink - Interpreted Matlab Function: How can I define that I want two inputs to my function?

37 ビュー (過去 30 日間)
Rafael Cordero
Rafael Cordero 2020 年 7 月 30 日
回答済み: maiaL 2020 年 8 月 4 日
I hava a function represented by the interpreted matlab function block.
In the matlab function code, I have specified it has two inputs. However, one one input port appears on the interpreted matlab function block. Hence, when I run the simulaiton, I get an error telling me the function expects two inputs. How then can I define that I want two input ports on my interpreted matlab function block?
Thanks,
Rafael

回答 (1 件)

maiaL
maiaL 2020 年 8 月 4 日
The Interpreted MATLAB function block only accepts one input afaik. Would it be possible to use a MATLAB function block instead?

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by