Pappu19

4

Sep 23rd, 2021
735
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. T = 0:0.01:1;
  2. x = 2*pi*1*T
  3.  
  4. sum = 0;
  5.  
  6. for i=1:5
  7.     a = sin(1*x)
  8.     figure(i)
  9.     plot(a)
  10.     sum = sum+a
  11. end
  12.  
  13. figure(i+1)
  14. plot(sum)
RAW Paste Data