How to change the origin axis of image?

20 ビュー (過去 30 日間)
Hieu Phan
Hieu Phan 2019 年 8 月 15 日
コメント済み: Hieu Phan 2019 年 8 月 15 日
So I have an image 201*181 pixel, I have already plot the axis along the image the result like the pic below. Now I want to chage the origin of axis to the position i mark. Can anyone help me please, i know this is a simple problem but I cant seem to know the right function to do that.Capture.PNG
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 8 月 15 日
Is it acceptable if just the label is changed, or do you need data cursor and GetPoint to report back in terms of the shifted coordinates ?
Hieu Phan
Hieu Phan 2019 年 8 月 15 日
編集済み: Hieu Phan 2019 年 8 月 15 日
I just need to chage the label, the axis is just something I want to show to understand the coordinate system, it not the data invole.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2019 年 8 月 15 日
ax = gca;
set(ax, 'YTickLabel', get(ax, 'YTick') - 100 )
  1 件のコメント
Hieu Phan
Hieu Phan 2019 年 8 月 15 日
Thank u very much, It works perfectly!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by