Guest User

Untitled

a guest
Apr 12th, 2015
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. clear all
  2. clc
  3.  
  4. t=0:pi/100:30;
  5. y=sin(t)./abs(sin(t));
  6.  
  7. figure();
  8. hold on;
  9. plot(t,y);
  10. syms s j Y;
  11. f=square(j);
  12. F=laplace(f,j,s)
  13. Y1=s*Y;
  14. Y2=s*Y1 - 1;
  15. sol=solve(Y2 + Y1 - F, Y)
  16. sol=ilaplace(sol,j,t)
  17.  
  18. y2= (exp(-t*pi)-1)./(t.*(exp(-t*pi)+1));
  19. %plot(t, y2);
  20. axis([-1 10*pi+1 -2 2]);
Advertisement
Add Comment
Please, Sign In to add comment