Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

save spacific entity from matrix

조회 수: 2 (최근 30일)
Hafiz Muhammad Saqib Ashfaq
Hafiz Muhammad Saqib Ashfaq 2019년 12월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
a1=input('give vale if th_1:');
a2=input('give vale if th_2:');
a3=input('give vale if th_3:');
th_1= (a1*pi/180)
th_2= (a2*pi/180);
th_3= (a3*pi/180);
L(1) = Link([ 0 0 20 0 0], 'standard');
L(2) = Link([ 0 0 20 0 0], 'standard');
L(3) = Link([ 0 0 20 0 0], 'standard');
Rob=SerialLink(L);
Rob.name='user nput rob';
Rob.plot([th_1 th_2 th_3]);
T=Rob.fkine([th_1 th_2 th_3])
i have tis code when i run this code it give T 4*4 matrix but when i try to save specifix entities from
T matrix it will give error"Index in position 1 exceeds array bounds (must not exceed 1)"
for saving entity i use this command
h=T(1,4); kindly help
  댓글 수: 3
Hafiz Muhammad Saqib Ashfaq
Hafiz Muhammad Saqib Ashfaq 2019년 12월 5일
yes sir
Walter Roberson
Walter Roberson 2019년 12월 5일
Which of his toolbox release versions are you using (just in case it makes a difference) ?

답변 (1개)

Walter Roberson
Walter Roberson 2019년 12월 5일
After your
T=Rob.fkine([th_1 th_2 th_3]);
Add
TM = T.T;
Now you can access TM(1,4)
  댓글 수: 6
Walter Roberson
Walter Roberson 2019년 12월 6일
Sorry, I do not know how to use this toolbox.
Hafiz Muhammad Saqib Ashfaq
Hafiz Muhammad Saqib Ashfaq 2019년 12월 7일
ok thankyou for your time

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by