%plot 2
t = -2:0.01:5;
A = 5;  %Amplitud
omega = 4;  %vinkelfrekvens
v=30;           %vinkel
v = (pi/180)*v;  %omvandla deg -> rad
x=A*sin(omega*t + v);
plot(t,x,'k');
ylim([-6 6]);
xlim([-1 2]);
grid on;