Please can you help me solve the temporary omega?
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 3 de Jul. de 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
el 3 de Jul. de 2024
Walter Roberson
el 3 de Jul. de 2024
N = 7;
th1 = rand(1,N);
th2 = rand(1,N);
th3 = rand(1,N);
th4 = rand(1,N);
W = rand(N, 3);
Carolina
el 4 de Jul. de 2024
Walter Roberson
el 4 de Jul. de 2024
You will also need to define i
Aquatris
el 4 de Jul. de 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
el 4 de Jul. de 2024
Sam Chak
el 4 de Jul. de 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.

Respuestas (0)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!