Guest User

Untitled

a guest
May 21st, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. x=0:0.1:10;
  2. y=@(x) x;
  3.  
  4. p2= plot(x,x);
  5. p1 = plot(x,x);
  6.  
  7.  
  8. hold on
  9.  
  10.  
  11. for n=1:10
  12. set(p1, 'YData', n*y(x))
  13. drawnow
  14.  
  15.  
  16.  
  17. %set(p1, 'YData', n*z(x))
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment