Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. close all
  2. clear all
  3. clc
  4. x=-2:0.1:2;w=1
  5. A=1;
  6. B=1;
  7. t0=-2.*pi;dt=0.01;tk=2.*pi;
  8. w=1;
  9. t=t0:dt:tk;
  10.  
  11.  
  12. [W,CZAS]=meshgrid(w,t)
  13. y= A.*((-5).*x.^2+x.^4+4).*B.*cos(w.*CZAS);
  14. figure(1)
  15. subplot(3,1,1)
  16. [X,CZAS]=meshgrid(x,t);
  17. mesh(CZAS,X,y)
  18. function[CZAS,X,y]=Krzysztof_Kubacki(el1,el2,el3,el4,el5,el6,el7)
  19. A=el1;
  20. B=el2;
  21. w=el3;
  22. x=el4;
  23. t0=el5;
  24. dt=el6;
  25. tk=el7;
  26. t=el5:dt:el7
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement