How can I plot the attached 3D figure with fewer edges (black curves) and the same linspace?
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Image Analyst
on 18 Jan 2016
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');
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!