Multiple y-axes within Simulation Data Inspector

34 ビュー (過去 30 日間)
Tyler Bikaun
Tyler Bikaun 2017 年 2 月 6 日
コメント済み: Andreas 2020 年 5 月 18 日
Hi,
I'm trying to figure out how to plot two variables within simulation data inspector (Simulink) using two y-axes and a common x-axis (obviously this will be the timestep). I have looked through the documentation but cannot seem to figure out how to do this.
Any help is much appreciated.

回答 (2 件)

Autumn Umanetz
Autumn Umanetz 2017 年 12 月 5 日
If your problem (like mine) was that the two series need wildly different Y scales, you can partially solve the problem by setting "Normalize Y-axis limits" in the plot preferences (Top right gear -> Limits tab -> Check "Normalize").
This shifts and scales all plots such that their entire Y range maps to the range [0-1].
  1 件のコメント
Andreas
Andreas 2020 年 5 月 18 日
This only works for time plots, but not for x/y-plots.

サインインしてコメントする。


Michelle Wu
Michelle Wu 2017 年 2 月 15 日
編集済み: Michelle Wu 2017 年 2 月 15 日
It is possible to view multiple signals on the same plot. You can do so simply by negativing to the "Runs" pane in the left hand side of the Simulation Data Inspector window and then selecting the check boxes next to the signals you want to stream in the plot. There are a few screenshots in the following documentation which may be helpful:
  1 件のコメント
Andreas
Andreas 2020 年 5 月 18 日
Hi Michelle,
example: you have to model some valve characteristics and will use x/y-plots.
y-axis 1: pressure drop
y-axis 2: volume flow
common x-axis: valve signal
How would you do that in the simulation data inspector?

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by