Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
imshow コマンドを使用して画像を表示しようとしています。私が思いつかなかったのは、x と y の値に従って画像軸にラベルを付けることです。私のコードは以下の通りです:
[X,Y] = meshgrid(0:0.01:1,0:0.01:1); u = 5; v = 1; z = sin(2*pi*(u*X+v*Y)); imshow(z); axis on
「軸オン」を使うと0~100と表示されますが、欲しいのは0~1です。
imshow次のように x 軸と y 軸の値を指定できます。
imshow
imshow(z, 'XData', 0:.01:1, 'YData', 0:.01:1)
(そしてもちろんaxis on、コードのように必要です)。
axis on