How to change the direction of x axis.
조회 수: 30 (최근 30일)
이전 댓글 표시
Hello, i'm working proccesing images with Matlab and i want to change the direction of x axis. Does anyone know how can i do it?. The red are my actual axis, and i want get the white one, so i need to rotate the x axis 180 degrees.
Thank you.
댓글 수: 0
채택된 답변
Star Strider
2021년 5월 21일
Reversing the axis direction reverses the plot as well.
I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/625258/Captura.PNG');
figure
imshow(I)
title('Original')
figure
imshow(I)
Ax = gca;
Ax.XDir = 'reverse';
title('X-Axis Direction Reversed')
.
댓글 수: 2
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!