Akzeptierte Antwort

Voss
Voss am 18 Mär. 2022

0 Stimmen

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 Kommentare

weihan wang
weihan wang am 18 Mär. 2022
thank you very much!
Voss
Voss am 18 Mär. 2022
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 可视化探查 finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 18 Mär. 2022

Kommentiert:

am 18 Mär. 2022

Community Treasure Hunt

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

Start Hunting!