Drawing a sphere inside a sphere?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
その他の回答 (1 件)
Matt
2012 年 7 月 25 日
Another possible solution is to simply add
hidden off
to the very end of your code.
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!