simlink内scopeから得られたデータをMATLABに入れる。
2 views (last 30 days)
Show older comments
KAI ENDO
on 11 Aug 2019
Answered: Toshinobu Shintai
on 13 Aug 2019
simlink内で得られた出力をscopeを使用して時間付き構造体にすることは出来ました。次に、MATLAB内でデータのインポートを行って、ワークスペースにansという形で変数を入れることが出来ました。そのansは[6000×1]の配列です。
ここで、質問なのですが、このansという変数をmatlab-function内に渡す方法が分かりません。渡し方はグローバル変数、Data store memoryを使用しています。simlink内にData store memoryは既に用意してあります。
0 Comments
Accepted Answer
Toshinobu Shintai
on 13 Aug 2019
From Workspaceブロックを用いてみてはどうでしょうか。
このブロックから信号をMATLAB Functionに入力するのでは駄目でしょうか。
0 Comments
More Answers (0)
See Also
Categories
Find more on スコープおよびデータ ログ in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!