how to access variables from simout - simulink simulation running programatically

3 vues (au cours des 30 derniers jours)
Peter
Peter le 25 Fév 2025
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?

Réponses (1)

Sam Chak
Sam Chak le 25 Fév 2025
Try this
%% Data sent to Workspace
toWksData = out7_1_1.simout;
or this
toWksData = get(out7_1_1, simout);

Catégories

En savoir plus sur Model, Block, and Port Callbacks dans Help Center et File Exchange

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by