You are on page 1of 2

t = 0:0.

05:10;
R=2;
alfa=8;

w=2*pi;
X=-R*cos(w*t+(1/2)*alfa*t.^2);
plot (t,X);
Y=R*sin(w*t+(1/2)*alfa*t.^2);
Vx=R*(w+alfa*t)*sin(w*t+(1/2)*alfa*t.^2);
Vy=R*(w+alfa*t)*cos(w*t+(1/2)*alfa*t.^2);

Ax=R*alfa*sin(w*t+(1/2)*alfa*t.^2)+R*(w+alfa*t).^2*cos(w*t+(1/2)*alfa*t.^
2);
Ay=R*alfa*cos(w*t+(1/2)*alfa*t.^2)-
R*(w+alfa*t).^2*sin(w*t+(1/2)*alfa*t.^2);

plot(t,X)
plot(t,Y)
plot(t,Vx)
plot(t,Vy)
plot(t,Ax)
plot(t,Ay)

subplot(3,2,1);
plot(t,X)
title('Grafica x-t');
xlabel('t')
ylabel('x')
grid
legend('-R*cos(w*t+(1/2)*alfa*t.^2)')

subplot(3,2,2);
plot(t,Y)
title('Grafica y-t');
xlabel('t')
ylabel('y')
grid
legend('R*sin(w*t+(1/2)*alfa*t.^2)')

subplot(3,2,3);
plot(t,Vx)
title('Grafica Vx-t');
xlabel('t')
ylabel('Vx')
grid
legend('R*(w+alfa*t)*sin(w*t+(1/2)*alfa*t.^2)')

subplot(3,2,4);
plot(t,Vy)
title('Grafica Vy-t');
xlabel('t')
ylabel('Vy')
grid
legend('R*(w+alfa*t)*cos(w*t+(1/2)*alfa*t.^2)')
subplot(3,2,5);
plot(t,Ax)
title('Grafica Ax-t');
xlabel('t')
ylabel('ax')
grid
legend('R*alfa*sin(w*t+(1/2)*alfa*t.^2)+R*(w+alfa*t).^2*cos(w*t+(1/2)*alf
a*t.^2)')

subplot(3,2,6);
plot(t,Ay)
title('Grafica Ay-t');
xlabel('t')
ylabel('ay')
grid
legend('R*alfa*cos(w*t+(1/2)*alfa*t.^2)-
R*(w+alfa*t).^2*sin(w*t+(1/2)*alfa*t.^2)')

You might also like