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 Kommentare

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.
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);
With the defined variables I can now obtain a result of W_t=W(i,:)';?
You will also need to define i
You should provide the full code instead of a small part of it. Currently we do not even know what ''temporary omega" is
Ok
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte

Gefragt:

am 3 Jul. 2024

Kommentiert:

am 4 Jul. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by