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!