how can i display and customize axis values in imshow image

21 ビュー (過去 30 日間)
DC
DC 2013 年 9 月 6 日
コメント済み: Ryan Thompson 2019 年 3 月 2 日
Hi... new to matlab..i have my data as following as a function of x,y coordinates..It's actually cell data not pointwise.. x=-2 0 2 -2 0 2 -2 0 2
y=-2 -2 -2 0 0 0 2 2 2
z=0 0 0 0 6 0 0 0 0
So i have used imagesc and imshow to represent and smoothen it...But i also want to display the x and y values on the axes of imshow image...my code is
biggerZ = imresize(z, [500, 500]);
subplot(1,2,1); imagesc(-2:2,-2:2,z); colormap('jet'); title('Original z' ); axis square
subplot(1,2,2); imshow(biggerZ,[]); colormap('jet'); title('Smooth z');

回答 (1 件)

Mahdi
Mahdi 2013 年 9 月 6 日
編集済み: Mahdi 2013 年 9 月 6 日
axis on
In the command window should give you the result.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by