Calling the vectorized Matlab fcn from within Simulink

1 回表示 (過去 30 日間)
Peter Balazovic
Peter Balazovic 2022 年 10 月 18 日
回答済み: Paul 2022 年 10 月 18 日
Dears,
I have various Matlab function vectorized and accosutmed to be used with matrix, vector inputs. Is there a way to use efffectivelly such "vectorized" functions in Simulink?

採用された回答

Paul
Paul 2022 年 10 月 18 日
Use a Matlab Function block in the Simulink model and call your function from inside that block. If your function is not amenable for code generation, declare it via coder.extrinsic. Check the doc pages for relevant details.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by