Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = linspace(0,0.001,1000);
- a = 5000;
- w = 5000 * 6 * pi;
- v0 = exp(-1*a*t).*sin(w*t);
- v1 = -1*exp(-1*a*t).*cos(w*t)+0.5;
- v0 = cat(2,v0,-v0);
- v1 = cat(2, v1, -v1);
- t2 = linspace(0,0.001,2000)
- figure(1)
- plot(v0,v1), xlabel('Vo(t) (V)'), ylabel ('V1(t) (V)'), title('XY plot of Vo(t) and V1(t)')
- figure(2)
- plot(t2,v0), xlabel('Time (s)'), ylabel ('Vo(t) (V)'), title('Plot of Vo(t) over time)')
- figure(3)
- plot(t2,v1), xlabel('Time (s)'), ylabel ('V1(t) (V)'), title('Plot of V1(t) over time)')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement