Plotting 3d Sphere with specific radius
11 ビュー (過去 30 日間)
古いコメントを表示
Jesus Mendez
2012 年 7 月 24 日
コメント済み: POORANI THIRUGNANA SAMBANDAM
2017 年 5 月 13 日
Hello!
I am trying to plot a sphere in 3D. This is what i know so far.
[x,y,z] = sphere; surf(x+a,y+b,z+c);
now i know that (a b c) means that its a shift in the x y and z axis respectively but it also affects the radius at the same time. How can i create a shift like mention above but also scaling down the radius to something lower than 1?
Cheers!
0 件のコメント
採用された回答
David Legland
2012 年 7 月 24 日
Hi,
maybe by specifying the radius as a scaling factor:
surf(x*r+a, y*r+b, z*r+c);
axis equal;
3 件のコメント
その他の回答 (0 件)
参考
カテゴリ
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!