필터 지우기
필터 지우기

How to get Simulink Simulation properly?

조회 수: 1 (최근 30일)
Gustavo Araujo
Gustavo Araujo 2021년 2월 11일
Hello everyone!
I have a 2x1 Simulink Output as it follows:
With the following:
And both simOut have the same itens (Event, Fault, Ir and so on).
When I try:
get(simOut, 'Fault')
I got only one of these structs, and I want separate them propely and know which is from 1 or 2 line (from 2x1 output).
How can I do this?
Here's part of the code (and I accept suggestions):
N = 2;
simOut = repmat(Simulink.SimulationOutput, N, 1);
for i = 1:N
simOut(i) = sim('mymodel','ReturnWorkspaceOutputs','on');
save falt.mat
end
Thank you in advance!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by