Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t_fine = linspace(0, 10, 100000); % Núna eru 100000 stök milli 0 og 1
- v_fine = sin(2*pi * 0.2 * t_fine);
- w_fine = sin(2*pi * 0.2 * t_fine + (2*pi*1/3)); % + 1/3 hringur
- u_fine = sin(2*pi * 0.2 * t_fine + (2*pi*2/3)); % + 2/3 hringur
- subplot(3,1,2);
- % plot(x,y) % líka haegt: plot(x,y1,x,y2,x,y3)
- plot(t_fine,v_fine);
- hold on;
- plot(t_fine,u_fine);
- hold on;
- plot(t_fine,w_fine)
- hold off;
- xlabel("Timi")
- ylabel("Utslag")
- title("Finar sinusbylgjur, þriggja fasa")
- axis([0 10 -1.5 1.5]) % axis([x_low x_high y_low y_high])
- legend('0 fasahliðrun','1/3 fasahliðrun','2/3 fasahliðrun')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement