フィルターのクリア

Modify Aspect Ratio in pcshow plot?

7 ビュー (過去 30 日間)
Seb H
Seb H 2018 年 7 月 5 日
回答済み: MiguelPujol 2024 年 5 月 7 日
Hi,
I'm currently trying to modify the aspect ratio on my pcshow plot, but it doesn't work. I already tried pbaspect([1 1 50]) and set(gca,'PlotBoxAspectRatio',[1 1 50]).
The problem is that the limits of the x- and y-axis are in the hundreds, but the z-axis is only from 0 to 10. I thought pbaspect would strech my z-axis so that the points are better visible in z-direction.
Thanks!

回答 (1 件)

MiguelPujol
MiguelPujol 2024 年 5 月 7 日
stretch_x = 1;
stretch_y = 1;
stretch_z = 50; % Stretch z axis by 50X
set(gca, 'DataAspectRatio', [1/stretch_x, 1/stretch_y, 1/stretch_z]);

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by