Please can you help me solve the temporary omega?

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

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
Carolina el 3 de Jul. de 2024
How can I define those variables?
N = 7;
th1 = rand(1,N);
th2 = rand(1,N);
th3 = rand(1,N);
th4 = rand(1,N);
W = rand(N, 3);
Carolina
Carolina el 4 de Jul. de 2024
With the defined variables I can now obtain a result of W_t=W(i,:)';?
You will also need to define i
Aquatris
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
Carolina el 4 de Jul. de 2024
Ok
Sam Chak
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Productos

Etiquetas

Preguntada:

el 3 de Jul. de 2024

Comentada:

el 4 de Jul. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by