How to change the origin axis of image?

7 vues (au cours des 30 derniers jours)
Hieu Phan
Hieu Phan le 15 Août 2019
Commenté : Hieu Phan le 15 Août 2019
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 commentaires
Walter Roberson
Walter Roberson le 15 Août 2019
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 le 15 Août 2019
Modifié(e) : Hieu Phan le 15 Août 2019
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.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 15 Août 2019
ax = gca;
set(ax, 'YTickLabel', get(ax, 'YTick') - 100 )
  1 commentaire
Hieu Phan
Hieu Phan le 15 Août 2019
Thank u very much, It works perfectly!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by