Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Plotting sphere error using surf

3 ビュー (過去 30 日間)
Joseph Lee
Joseph Lee 2017 年 11 月 22 日
閉鎖済み: Joseph Lee 2017 年 11 月 22 日
Error using surf (line 82) Z must be a matrix, not a scalar or vector.
[x z y] = sphere;
a=[ 0.2627 0.2677 0.0479 0.0723 ]
% a=[x position z position y position radius]
surf(x*a(1,4)+a(1,1),z*a(1,4)+a(1,2),y*a(1,4)+a(1,3));
  2 件のコメント
M
M 2017 年 11 月 22 日
If I run your code, here is what I get.
Joseph Lee
Joseph Lee 2017 年 11 月 22 日
I found out the cause of my error thanks!

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by