How to get Simulink Simulation properly?
2 次查看(过去 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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!