FOR loop merge plots
古いコメントを表示
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
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Two y-axis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!