Is it possible to load an array to the simulink workspace and call it in a matlab function?

22 ビュー (過去 30 日間)
I have made and array in 3 dimensions initialize with zeros. I would like to import it in the simulink workspace and call it from a matlab function. Is that possible?

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 14 日
If it is a numeric array, then there are several possible ways. The easiest one is to use a constant block, write the name of the 3D variable as the value of the constant block, and then attach that constant block as input to the MATLAB function block.
  19 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 5 月 14 日
Yes, If you have Simulink code, you can generate C/C++ code from your Simulink model.
Mariana
Mariana 2020 年 5 月 14 日
Great! Thanks for your help! :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by