채택된 답변

Voss
Voss 2022년 3월 18일

0 개 추천

If I understand what you want to do, you can try something like this:
plot(-4:4,-4:4);
ax = gca();
set(ax,'XTickLabels',abs(get(ax,'XTick')));
Note that you would also have to update the XTickLabels whenever the XTicks change, e.g., when zooming or panning or potentially when the axes changes size.

댓글 수: 2

weihan wang
weihan wang 2022년 3월 18일
thank you very much!
Voss
Voss 2022년 3월 18일
You're welcome!

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 可视化探查에 대해 자세히 알아보기

태그

질문:

2022년 3월 18일

댓글:

2022년 3월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!