How to change the order on vertical axis on a figure ?
조회 수: 18 (최근 30일)
이전 댓글 표시
From the below code, in the figure, vertical axis is from -1 to 2. i want to change the order i.e 2 to -1. Thanks for all cooperation.
x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
scatter(x,y)

댓글 수: 0
채택된 답변
Ankit
2019년 9월 27일
hi,
you could try this
x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
scatter(x,y)
set(gca,'YDir','reverse')
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!