FOR loop merge plots
Mostrar comentarios más antiguos
I have a Simulink model which has user-defined library blocks in it. The values for the variables inside these library blocks are fetched from an ‘m’ script. Basically, I am running the m script to load all the library blocks, then the Model and then run the Simulink model to plot few results. But, I am looking for running the model twice with different values for few variables. Below is the syntax
For count = 1:2;
Load_syntax(‘library_block’)
model = 'model_name';
load_system(model)
sim(model)
plot()
plotyy()
plot()
.
.
& 6 to 8 plots
Variable_name = new value;
end
I am not sure how to merge the plots with the new values over the previous plots, to analyse the results clearly (also plot using a different color). Also, please let me know if we have any other way to achieve this. Please help. Thanks in advance
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Two y-axis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!