필터 지우기
필터 지우기

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