%-- SCRIPT: PlotJuntasD ---------------------------------------------------------------------   
 figure(2)
 subplot(3,1,1), plot(t,q(1,:),'r', t,q(2,:),'b')
                 ylabel(' q (rad) '), grid on
                 title(' Deslocamentos, Velocidade e Acelerações Angulares: q1 ("r") e q2 ("b") ')
 subplot(3,1,2), plot(t,dq(1,:),'r', t,dq(2,:),'b')
                 ylabel(' dq (rad/s) '), grid on
 %                title(' Velocidades Angulares: w1 ("red") e w2 ("blue") ')
 subplot(3,1,3), plot(t,ddq(1,:),'r', t,ddq(2,:),'b')
                 xlabel(' t (s) '), ylabel(' ddq (rad/s) '), grid on
 %                title(' Acelerações Angulares: dw1 ("red") e dw2 ("blue") ')           
 pause, close(2)
                 
