Flip the y-axis values?

조회 수: 2 (최근 30일)
SuzieChan
SuzieChan 2020년 4월 12일
답변: Mehmed Saad 2020년 4월 12일
Hi,
Is it possible to 'flip' or 'reverse' the y-axis values so they show in opposite order?
For some reason, Matlab puts 1` at the top of the y-axis, down to 0 in descending order.
Can I make the y-axis show 0 at the top, and 1 at intersection with the x-axis?
(reasoning: 0 represents ground level, and 1 represents 1 meter below ground level).

채택된 답변

Mehmed Saad
Mehmed Saad 2020년 4월 12일
set(gca,'YDir','reverse')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by