surf(A,,'e​dgecolor',​'none'); why using this function in MATLAB

160 ビュー (過去 30 日間)
Deepu S S
Deepu S S 2021 年 9 月 10 日
編集済み: Walter Roberson 2021 年 9 月 10 日
surf(A,,'edgecolor','none');
First of all i'm very new to MATLAB. I want know why using
surf(A,,'edgecolor','none');
function in matlab

採用された回答

Walter Roberson
Walter Roberson 2021 年 9 月 10 日
Compare:
A = sort(randi([-2 9], 300, 500));
surf(A)
title('edgecolor default')
figure
surf(A, 'edgecolor', 'none')
title('edgecolor none')
Notice that the first of the two surface plots is nearly completely black, but the second of them, with edgecolor none, looks fine.
The difference is that in the first one, all the edges have been drawn in black. But edges have fixed drawing width: if you draw an edge and then zoom the plot in or out, the edge stays the same thickness on the screen. When you have enough data that the view has to zoom out to look at it all, then the data coordinates get squished together compared to physical drawing coordinates, so the data coordinates at which the edges get drawn get closer together, but the width of the edges stays the same. At some point, the edges are pretty much touching, and all you can see is the edges.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by