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

조회 수: 2 (최근 30일)
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 CenterFile Exchange에서 2-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