Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. function double_spiral()
  2. t=0:pi/20:5.5*pi;
  3. x1=t.*cos(t);
  4. y1=t.*sin(t);
  5. clf;
  6. plot(x1,y1);
  7. hold on;
  8.  
  9. t=0:pi/20:5.5*pi;
  10. x2=t.*cos(t) - 50;
  11. y2=t.*sin(t);
  12. plot(-x2,y2);
  13.  
  14. hold on;
  15.  
  16. plot(0:50,y1(end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement