Advertisement
Pappu19

4

Sep 23rd, 2021
1,057
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.14 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement