Info
此问题已关闭。 请重新打开它进行编辑或回答。
solving Matrix index problem
2 次查看(过去 30 天)
显示 更早的评论
Hi everybody, I use the robotics toolbox for matlab, I m confused , the matrix of forward kinematics is a 4*4 matrix but in the indexition is an 1*1 matrix? any help
4 个评论
John D'Errico
2020-7-28
Lacking the indicated toolbox, so I cannot say for certain, but...
While T is returned as what appears to be a 4x4 array, we see size(T) tells us it is 1x1. That suggests T is really an object. Therefore, you need to try this:
whos T
If so, then of course floor(T(1,4)) would produce an error, since T is a 1 by 1 object. Again, size tells us that.
You need to verify what T is. Then do some reading in the help to understand how to use these tools.
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!