MATLAB overwriting my Simulink simulation?

3 ビュー (過去 30 日間)
Jasim Alqam
Jasim Alqam 2021 年 11 月 22 日
回答済み: Raj 2024 年 3 月 28 日 6:19
Im trying to plot multipe curve in one chart and Simulink is overwriting my data in MATLAB every time I run a simulation although I changed the variable name every time I change my parameters?

回答 (1 件)

Raj
Raj 2024 年 3 月 28 日 6:19
As per my understanding, you are facing issues with multiple simulation and data getting overwritten with every simulation.
For plotting multiple curve in one chart, you need to use the 'hold' function in your script. This will help you retain current plot when adding new plots. For better understanding you can refer to the following documentation link for the 'hold' function.
I hope this resolves your query!

カテゴリ

Help Center および File ExchangeData Logging についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by