Drawing a sphere inside a sphere?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mark
am 25 Jul. 2012
Kommentiert: Star Strider
am 16 Mai 2021
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Matt
am 25 Jul. 2012
Another possible solution is to simply add
hidden off
to the very end of your code.
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!