petercorke / robotics-toolbox-matlab

Robotics Toolbox for MATLAB
GNU Lesser General Public License v2.1
1.26k stars 440 forks source link

fkine demo should plot X, Y and Z on the translational part of T #123

Open gelanchez opened 1 year ago

gelanchez commented 1 year ago

Demo fkine.m plots three times the X component of the translational part of T. X, Y, Z components should be plotted instead by doing:

subplot(3,1,1)
plot(t, p(:,1))
xlabel('Time (s)');
ylabel('X (m)')
subplot(3,1,2)
plot(t, p(:,2))
xlabel('Time (s)');
ylabel('Y (m)')
subplot(3,1,3)
plot(t, p(:,3))
xlabel('Time (s)');
ylabel('Z (m)')