Plotting 3d sphere from equation
8 ビュー (過去 30 日間)
古いコメントを表示
I'm looking for a way to plot a 3d sphere given its equation.
Eg: (x-a)^2 + (y-b)^2 + (z-c)^2 <= R
I found that 'sphere' allows me to plot a unit sphere and that I can change its center using 'surf'. However, I don't see anyway to change the radius.
I haven't tried 'sphere3d', but from its documentation, it looks like I have to convert my equation to the polar coordinate system.
Is there any other function in matlab that can plot a sphere given an equation like above?
Thanks,
0 件のコメント
採用された回答
その他の回答 (1 件)
Walter Roberson
2011 年 11 月 16 日
To change the radius of sphere(), multiply all of its coordinates by R (before doing any translation.)
参考
カテゴリ
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!