XY Graph Block Question

4 ビュー (過去 30 日間)
Timo Röder
Timo Röder 2021 年 7 月 8 日
回答済み: Arthi Sathyamurthi 2021 年 7 月 20 日
Hello everyone,
I want to plot the capacity of a battery agains the number of charge-cycles it went through.
Because the Scope can only show the time on the x-axes I use a XY-Graph Block.
With the cycles in the first input and the capacity in the second input, everything works as expected.
But as the graph is drawn during the simulation, the older values dissapear again as the newer ones are being drawn. I want a complete graph with all values from start to finish shown at the end, to compare that curve to curves drawn with other settings.
How is that possible?
Thanks in advance for the help.

回答 (1 件)

Arthi Sathyamurthi
Arthi Sathyamurthi 2021 年 7 月 20 日
Hello Timo,
To plot multiple graphs for different simulation time or for values in the iteration use the To Workspace block and store the output as an array and plot it in MATLAB.
Else if you want to directly visualize and compare the results in Simulink use Simulation Data Inspector.

カテゴリ

Help Center および File ExchangeView and Analyze Simulation Results についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by