How can I plot the attached 3D figure with fewer edges (black curves) and the same linspace?

2 ビュー (過去 30 日間)
Moein
Moein 2016 年 1 月 18 日
コメント済み: Moein 2016 年 1 月 18 日
Hi friends
I have plotted the attached Fig. using surfc command (the following code) but the problem I have is that the number of black curves or edges which appear in the figure is too large so that the the color of figure is almost black (As it can be seen on figure).
the code:
t=linspace(-pi/8,pi/8,200);
r=linspace(0,1,400);
[t, r]=meshgrid(t, r);
z=(0.2079921258e1 .* (cos((4 .* t)) .^ 2 .* ((4 .* r .^ 3 - 2 .* r) .^ 2) ./ 0.144e3 + sin((4 .* t)) .^ 2 .* ((r .^ 4 - r .^ 2) .^ 2) ./ (r .^ 2) ./ 0.9e1) ./ (-0.1361305280e0 .* cos((4 .* t)) .* (r .^ 4 - r .^ 2) + 0.1e1) + 0.1e1) ./ (-0.1361305280e0 .* cos((4 .* t)) .* (r .^ 4 - r .^ 2) + 0.1e1);
[x,y,z]=pol2cart(t,r,z);
surfc(x,y,z);
*****What command or property i should use to plot the figure with fewer black curves? in other words, how can i delete some edges?
If you know please answer to my question as simple as you can.
Thanks a lot

回答 (1 件)

Image Analyst
Image Analyst 2016 年 1 月 18 日
It doesn't look like there's a line or edge spacing option. You can turn the lines off completely or partially with some options. For example, setting EdgeColor or LineStyle to 'none':
surfc(x,y,z, 'LineStyle', 'none');
  1 件のコメント
Moein
Moein 2016 年 1 月 18 日
i found the answer in following link:
https://www.mathworks.com/matlabcentral/answers/91517-how-can-i-reduce-the-number-of-edges-shown-in-a-surface-plot-in-matlab

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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by