Please can you help me solve the temporary omega?
Ältere Kommentare anzeigen
J=Jacob(th1(i),th2(i),th3(i),th4(i));
W_t=W(i,:)'; Index in position 1 exceeds array bounds. Index must not exceed 4.
V=J*W_t;
dim = [0.8 0.5 0.4 0.3];
annotation('textbox',dim,'String',num2str(V))
8 Kommentare
Walter Roberson
am 3 Jul. 2024
The above code does not define the th* variables or the W variable. We have no reason to expect that they are any particular size or any particular data type.
Carolina
am 3 Jul. 2024
Walter Roberson
am 3 Jul. 2024
N = 7;
th1 = rand(1,N);
th2 = rand(1,N);
th3 = rand(1,N);
th4 = rand(1,N);
W = rand(N, 3);
Carolina
am 4 Jul. 2024
Walter Roberson
am 4 Jul. 2024
You will also need to define i
Aquatris
am 4 Jul. 2024
You should provide the full code instead of a small part of it. Currently we do not even know what ''temporary omega" is
Carolina
am 4 Jul. 2024
Sam Chak
am 4 Jul. 2024
I can only make a guess that
, where v is the translational velocity vector,
is the Jacobian matrix, and ω is the rotational velocity vector.
The error message "Index must not exceed 4" probably suggest that this is a 4-joint Robotic Arm.

Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!