Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.61 KB | None | 0 0
  1. t_fine = linspace(0, 10, 100000); % Núna eru 100000 stök milli 0 og 1
  2.  
  3. v_fine = sin(2*pi * 0.2 * t_fine);
  4. w_fine = sin(2*pi * 0.2 *  t_fine + (2*pi*1/3)); % + 1/3 hringur
  5. u_fine = sin(2*pi * 0.2 *  t_fine + (2*pi*2/3)); % + 2/3 hringur
  6.  
  7. subplot(3,1,2);
  8. % plot(x,y)         % líka haegt: plot(x,y1,x,y2,x,y3)
  9. plot(t_fine,v_fine);
  10. hold on;
  11. plot(t_fine,u_fine);
  12. hold on;
  13. plot(t_fine,w_fine)
  14. hold off;
  15.  
  16. xlabel("Timi")
  17. ylabel("Utslag")  
  18. title("Finar sinusbylgjur, þriggja fasa")
  19. axis([0 10 -1.5 1.5])  % axis([x_low x_high y_low y_high])
  20. legend('0 fasahliðrun','1/3 fasahliðrun','2/3 fasahliðrun')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement