how to access variables from simout - simulink simulation running programatically
4 次查看(过去 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!