How to make the negative sign of y axis to be up ?
조회 수: 24 (최근 30일)
이전 댓글 표시
How to make the negative sign of y axis to be up?
댓글 수: 0
답변 (2개)
VBBV
2024년 7월 15일
ydata = -900:100:100
xdata = ydata.*ones(1,length(ydata))
plot(xdata,ydata)
yticks = ydata;
yticklabels(fliplr(yticks))
댓글 수: 1
dpb
2024년 7월 15일
ydata = -900:100:100;
xdata = ydata;
plot(xdata,ydata)
hAx=gca;
hAx.YDir='reverse';
The above reverses the actual relation between the x, y values; as defined, y==x so the negative x and y values should be associated visually.
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!