imagescの軸の比率を変更したいです。
이전 댓글 표시
縦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]);
카테고리
도움말 센터 및 File Exchange에서 カメラ ビュー에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!