Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.49 KB | None | 0 0
  1. L=-0.015;
  2. t=[0:1:500];
  3. x0=3;
  4. figure(1);
  5. kolor='rgbkmc';
  6. A=[-24:8:24];
  7. for iter=[1:1:6]
  8.     x=A(iter)*exp(L*t)+x0;
  9.     plot(t,x,kolor(iter));
  10.     hold on;
  11.     %axis([0 500 0 25]);
  12.     grid on;
  13. end;
  14. A=1;
  15. L=-0.1;
  16. t=[0:1:50];
  17. figure(2);
  18. w=0.5
  19. fi=0;
  20. for A=[1:1:6]
  21.     subplot(3,2,A);
  22.     x=A*exp(L*t).*cos(w*t+fi)+x0;
  23.     plot(t,x);
  24.     hold on;
  25.     x=A*exp(L*t)+x0;
  26.     plot(t,x,'r-');
  27.     x=-A*exp(L*t)+x0;
  28.     plot(t,x,'r-');
  29.     grid on;
  30.     axis([0 50 -5 10]);
  31. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement