SimulinkのB​us信号とmatla​bの構造体の相互変換

11 Ansichten (letzte 30 Tage)
Yusuke Sakamaki
Yusuke Sakamaki am 17 Mai 2022
Kommentiert: Yusuke Sakamaki am 17 Mai 2022
以下のURLの説明のようにバス信号をmatlab function内で構造体として扱えることは分かっていますが、
手動で配列サイズなどを設定することなく。Bus配列の構造から、
自動でmatlab function内では構造体に変換、またその逆の事は出来ませんか?
https://jp.mathworks.com/help/simulink/ug/attach-bus-signals-to-matlab-function-blocks.html

Antworten (1)

Toshinobu Shintai
Toshinobu Shintai am 17 Mai 2022
Simulink.Bus.createObject」というコマンドで変換することができます。詳細については、以下リンク先の記事をご確認ください。
  1 Kommentar
Yusuke Sakamaki
Yusuke Sakamaki am 17 Mai 2022
ご回答ありがとうございます。確かにこのコマンドで出来るかもしれないので、もう少し調べてみようと思います。

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu イベント関数 finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!