axis control in Image plot
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, I am trying to understand image plot. When I run this example
x = [1 5];
y = [1 5];
C = [0 2 4 6; 8 10 12 14; 16 18 20 22];
imagesc(x,y,C)
I get the figure (attached here).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191605/image.png)
In Y axis its comes in descending order. I want to get it in Ascending order. How can I control the axis range?
댓글 수: 0
채택된 답변
KSSV
2018년 7월 2일
x = [1 5];
y = [1 5];
C = [0 2 4 6; 8 10 12 14; 16 18 20 22];
figure
h1 = axes ;
imagesc(x,y,C) ;
set(h1,'YDir','normal');
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!