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
댓글 수: 0
답변 (1개)
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');
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!