採用された回答

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!