Advertisement
Guest User

Matlab Code For Lab 3 - Joshua Jacob

a guest
Nov 19th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.50 KB | None | 0 0
  1. t = linspace(0,0.001,1000);
  2. a = 5000;
  3. w = 5000 * 6 * pi;
  4. v0 = exp(-1*a*t).*sin(w*t);
  5. v1 = -1*exp(-1*a*t).*cos(w*t)+0.5;
  6. v0 = cat(2,v0,-v0);
  7. v1 = cat(2, v1, -v1);
  8. t2 = linspace(0,0.001,2000)
  9. figure(1)
  10. plot(v0,v1), xlabel('Vo(t) (V)'), ylabel ('V1(t) (V)'), title('XY plot of Vo(t) and V1(t)')
  11.  
  12. figure(2)
  13. plot(t2,v0), xlabel('Time (s)'), ylabel ('Vo(t) (V)'), title('Plot of Vo(t) over time)')
  14. figure(3)
  15. 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