필터 지우기
필터 지우기

Line Plot with Highest value in the middle

조회 수: 1 (최근 30일)
TTA
TTA 2022년 5월 26일
답변: TTA 2022년 5월 26일
Hi,
Please how can I make a plot with the highest value in the middle while the lowest values at the bottom and top
For example
y -axis has [0, 5, 0]
Thanks

답변 (2개)

DGM
DGM 2022년 5월 26일
편집: DGM 2022년 5월 26일
You mean
y = [0, 5, 0];
plot(y)
If you mean something else, you'll have to elaborate.
  댓글 수: 4
TTA
TTA 2022년 5월 26일
I don't mean the two axes at thesame time.
I said either x or y axis having a scale that spans like [700 1500 700] and the other axis having a different time series scale.
I hope my question is clear
Thanks
dpb
dpb 2022년 5월 26일
MATLAB axes are unidirectional by definition and can't be anything else -- and it doesn't make any sense, either.
If the y-axis were to be double-valued, which 700 value is to be used for any given set of x,y data? It's not defined only by the y value, but by the ordinal position in the vector, apparently.
All you could do in this case is plot the data in the time vector and then label tick values correspondingly as wanted independent of what the actual tick values are or have overlaying axes with independent scales and plot into the axes of choice for which piece of the data is associated with that section.

댓글을 달려면 로그인하십시오.


TTA
TTA 2022년 5월 26일
Ok!
I got your point.
Thanks

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by