How to make the 3D plot more smooth?

5 ビュー (過去 30 日間)
jacnil
jacnil 2018 年 4 月 21 日
編集済み: KALYAN ACHARJYA 2018 年 4 月 21 日
I want to plot 3D polygons in Matlab, however, the lines are not smooth and there are zigzags appearing in the box edges and the polygons' edges. Is there any way to correct this situation? Furthermore, how can I get a higher resolution picture? One picture is shown below. Thank you very much!
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 21 日
Which MATLAB version are you using, and which operating system?

サインインしてコメントする。

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 4 月 21 日
編集済み: KALYAN ACHARJYA 2018 年 4 月 21 日

As the zig-zag lines are based on your code, For the second part of the question, you can save the display 3D plot in a high-resolution image as follows-

 %After plot statement
fig=gcf;
fig.PaperPositionMode = 'auto';
%'png format-you can change it' '-r_resolution value' change it as per require result
print('save_file_name','-dpng','-r500'); 

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by