Multiple y-axes within Simulation Data Inspector
조회 수: 33 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (2개)
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
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
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 Exchange에서 Analyze Simulation Results에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!