Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. %a
  2. t=0:0.1:8*pi;
  3. x=(e.^(-0.05)).*sin(t);
  4. y=(e.^(-0.05*t)).*cos(t);
  5. z=t;
  6. subplot(2,2,1)
  7. plot3(x,y,z,'color','r','LineWidth',2);
  8. %b
  9. t=0:0.1:2*pi;
  10. x=2.*sin(3.*t).*cos(t);
  11. y=2.*sin(3.*t).*sin(t);
  12. z=sin(3.*t);
  13. subplot(2,2,2)
  14. plot3(x,y,z,'color','g','LineStyle','-','LineWidth',1);
  15. %c
  16. t=0:0.1:2*pi;
  17. x=3.*cos(t)+cos(10.*t).*cos(t);
  18. y=3.*sin(t)+cos(10.*t).*sin(t);
  19. z=sin(10.*t);
  20. subplot(2,2,3);
  21. plot3(x,y,z,'color','b','LineWidth',4);
  22. %d
  23. t=0:0.1:8*pi;
  24. x=5.*cos(t)-cos(5.*t);
  25. y=5.*sin(t)-sin(5.*t);
  26. z=t;
  27. subplot(2,2,4)
  28. plot3(x,y,z,'color','c','LineWidth',4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement