Azzera filtri
Azzera filtri

How to get Simulink Simulation properly?

1 visualizzazione (ultimi 30 giorni)
Gustavo Araujo
Gustavo Araujo il 11 Feb 2021
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!

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by