Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. clc
  2. clear
  3. A=zeros(4,36);
  4.  
  5. for i=1:36
  6. A(1,i) = (i-16)*0.1;
  7. end
  8.  
  9.  
  10. for i=1:36
  11. x=A(1,i)
  12. A(2,i) = sin(x);
  13. A(3,i) = cos(x);
  14. A(4,i) = (sin(x))^2;
  15. end
  16.  
  17. subplot(3,1,1)
  18. plot(A(1,:), A(2,:), 'r')
  19.  
  20.  
  21. mtlb_hold on;
  22. subplot(3,1,2)
  23. plot(A(1,:), A(3,:), 'g')
  24.  
  25.  
  26.  
  27. subplot(3,1,3)
  28. plot(A(1,:), A(4,:), 'b')
  29.  
  30.  
  31. subplot(3,1,4)
  32. plot(A(1,:), A(4,:), 'b')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement