how to access variables from simout - simulink simulation running programatically
5 ビュー (過去 30 日間)
古いコメントを表示
I have run my simulink model from cmd line and saved simulated out object
out7_1_1 = sim(mdl);
save("mu_sims_data71.mat","out7_1_1","-append");
Variable which I am looking for is logged

So I'd like to take out from "out" object - how?
Where/how can I find this variable?

0 件のコメント
回答 (1 件)
Sam Chak
2025 年 2 月 25 日
Try this
%% Data sent to Workspace
toWksData = out7_1_1.simout;
or this
toWksData = get(out7_1_1, simout);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Model, Block, and Port Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!