FOR loop merge plots
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Two y-axis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!