Effacer les filtres
Effacer les filtres

Put axes in center of image?

4 vues (au cours des 30 derniers jours)
Jose Zamora Zeledon
Jose Zamora Zeledon le 17 Juin 2016
I have a 64x64 matrix 'img' that represents an image; I'm plotting with imagesc(img,clims). Right now both the x and y axes go from 0 to 64. I want to display the image with axes with the origin at the center of the image so that the x and y axes go from -32 to 32. How can I do this?
Thank you!

Réponse acceptée

dpb
dpb le 18 Juin 2016
Read the doc and the examples...
x=[-32 32]; y=x;
imagesc(x,y,img,clims);
  1 commentaire
Jose Zamora Zeledon
Jose Zamora Zeledon le 19 Juin 2016
Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Visual Exploration 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