Mirror about Y axis

조회 수: 4 (최근 30일)
juan sanchez
juan sanchez 2022년 5월 11일
댓글: juan sanchez 2022년 5월 11일
How can I plot this axis to the mirror about the y axis and x axis pointing the opposite direction? Thank you.
a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
plot (a, b,'.')

채택된 답변

DGM
DGM 2022년 5월 11일
Something like this:
a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
plot(a,b);
hax = gca;
hax.XDir = 'reverse'; % flip axis direction
hax.YAxisLocation = 'right'; % move ticks & labels to the other side
  댓글 수: 1
juan sanchez
juan sanchez 2022년 5월 11일
Thank you very much. This is very helpful.

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

추가 답변 (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