How to get Simulink Simulation properly?

1 次查看(过去 30 天)
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