Drawing a sphere inside a sphere?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is it possible to draw a sphere inside a sphere? I tried the following, but this covers the small sphere, despite the "mesh" instead of "surf":
[x,y,z] = sphere();
r = 5;
mesh( r*x, r*y, r*z );
hold on
r = 2;
mesh( r*x, r*y, r*z );
hold off
0 commentaires
Réponse acceptée
Plus de réponses (1)
Matt
le 25 Juil 2012
Another possible solution is to simply add
hidden off
to the very end of your code.
Voir également
Catégories
En savoir plus sur Surface and Mesh 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!