Joint angle values are changing from an initial to a final value with constant velocity in a given time(Given as a loop function). I have to plot a graph of joint angle motion?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have to plot a graph of joint angle motion from initial to final value by considering every values assumed by the joint . How it is possible?Any help will be usefull.
5 Commenti
Ameer Hamza
il 4 Mag 2018
from this code, I can't say what does rob.plot do, but hold on should prevent the old graphics objects from being deleted.
Risposte (1)
sloppydisk
il 4 Mag 2018
Please take a look at
doc refreshdata
This will allow you to specify a data source for your plot outside of the loop and update it inside.
2 Commenti
sloppydisk
il 5 Mag 2018
Ah I think I have misunderstood your question, I thought you were trying to make an animated graph. Basically you want to plot position as function of time for 5 velocities, right? Something equivalent to this should work:
% time and velocity
t = 0:10;
v = 1:5;
% preallocate x
x = zeros(5, 11);
% find x in a loop
for i = 1:5
x(i, :) = v(i)*t;
end
% plot
plot(x, t)
Vedere anche
Categorie
Scopri di più su Robotics in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!