How can I plot the attached 3D figure with fewer edges (black curves) and the same linspace?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Image Analyst
le 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');
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!