필터 지우기
필터 지우기

Error: Error using surf (line 78) Data dimensions must agree

조회 수: 3 (최근 30일)
Anjali Rao
Anjali Rao 2015년 6월 14일
답변: Eric Lin 2015년 6월 15일
for i= 0:0.05:5.58 %5.58
q = [i 0 0 0 0 0]
r = p560.fkine(q)
x= r(1,4);
y = r(2,4);
z = r(3,4);
X = [X;x]
Y = [Y;y]
Z = [Z;z]
Please Help!
  댓글 수: 2
Anjali Rao
Anjali Rao 2015년 6월 14일
I want to find the workspace for the manipulator, I am able to plot the path of end effector for all angles.Please guide!
Jan
Jan 2015년 6월 14일
Please post the relevant part of the plot (where is the failing surf command?!) and the complete error message. Is "r" a variable of a function? What is "p560.fkine"?
Please post the required details.

댓글을 달려면 로그인하십시오.

답변 (1개)

Eric Lin
Eric Lin 2015년 6월 15일
As Jan Simon noted, we'll need more information to fully help you.
However, based on your provided code, I'm going to assume your "surf" call is of the form "surf(X,Y,Z)" and that X and Y are vectors. Thus, according to the documentation, the key point is that
If X and Y are vectors, length(X) = n and length(Y) = m, where [m,n] = size(Z).

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by