Can't save Simulink simulation results after changing parameter
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Tomtom
el 26 de Mzo. de 2016
Comentada: Tomtom
el 28 de Mzo. de 2016
Hey everybody,
so I have a Simulink simulation where I vary a parameter
for i=1:length(parameter)
Input_var=parameter(i)
sim(modelname)
simout_store(:,i)=simout(:,1) %simout is a "to workbench" output in the simulation
end
But all I get is this error "Subscripted assignment dimension mismatch." How can I fix this? I just want to save the results after every simulation before it gets overridden
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 27 de Mzo. de 2016
Use a cell array
simout_store{i}=simout(:,1)
3 comentarios
Azzi Abdelmalek
el 28 de Mzo. de 2016
If the step time is not fixed, you can get any number of samples
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!