Info

此问题已关闭。 请重新打开它进行编辑或回答。

Plotting sphere error using surf

1 次查看(过去 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