imagescの軸の比率を変更したいです。

10 次查看(过去 30 天)
慶次郎 釜堀
慶次郎 釜堀 2023-7-26
縦640横360ピクセルの3Dデータをimagescを用いて表示しているのですが、正方形に表示されているので、ピクセル通りの縦長に表示させたいです。
%3Dデータ確認
for k = 1:2026
imagesc(data_1(:,:,k))
xlim([0 360])
ylim([0 640])
drawnow
end

回答(1 个)

交感神経優位なあかべぇ
daspect([1,1,1]);でデータ単位の長さの比率を同じに指定することで、xlim, ylimで指定した長さの比率にすることができます。
plot([0,360],[0,200]);
xlim([0 360]);
ylim([0,640]);
daspect([1,1,1]);

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for IP Cameras 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!