Put axes in center of image?

1 回表示 (過去 30 日間)
Jose Zamora Zeledon
Jose Zamora Zeledon 2016 年 6 月 17 日
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!

採用された回答

dpb
dpb 2016 年 6 月 18 日
Read the doc and the examples...
x=[-32 32]; y=x;
imagesc(x,y,img,clims);
  1 件のコメント
Jose Zamora Zeledon
Jose Zamora Zeledon 2016 年 6 月 19 日
Thank you!

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by