How can I move the starting plot point in figure?

I have a 90x125 matrix, when using image command, the program always start to plot at x=0 y=0. Can I change it to somewhere like x=-50 y=-50. Thank you

 採用された回答

The Matlab Spot
The Matlab Spot 2014 年 8 月 12 日
編集済み: The Matlab Spot 2014 年 8 月 12 日

0 投票

Check varying XData & YData for the Image object that you have created. It is about changing the X & Y Offsets

1 件のコメント

Tony
Tony 2014 年 8 月 12 日
Thank you very much. May I ask one more question.I have generated the following image from the matrix.The color is a little bit wrong due to the different between value ( 0 vs 6.8*10^7 and any value below 10^7 will be colored in blue)
Can I somehow change the colorbar to make the image more like this?
Again, Thank you. Best regard.

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

その他の回答 (0 件)

製品

質問済み:

2014 年 8 月 12 日

コメント済み:

2014 年 8 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by