Professional Documents
Culture Documents
Plot (X)
Plot (X)
BSCPE302
1.
t = 1:1e4;
x =
5*sin(2*3.1416*100*t
);
plot(x)
2.
3. t = 1:1e4;
4. x = 10*sin(2*3.1416*100*t);
5. plot(x)
6.
7. t = 1:1e4;
8. x = 15*sin(2*3.1416*100*t);
9. plot(x)
10.
11. t = 1:1e4;
12. x = 20*sin(2*3.1416*100*t);
13. plot(x)
14.
15. t = 1:1e4;
16. x = 1*sin(2*3.1416*100*t);
17. plot(x)
18.
19. t = 1:1e4;
20. x = 0.5*sin(2*3.1416*100*t);
21. plot(x)
Answer: The waveform is like this is because it is the result of the combination of
multiple sine waves. The phasing goes higher and lower constantly when the voltage
input is high in number.
3.
t = 1:1e4;
x = 5*sin(2*3.1416*200*t);
plot(x)
t = 1:1e4;
x = 5*sin(2*3.1416*300*t);
plot(x)
t = 1:1e4;
x = 5*sin(2*3.1416*500*t);
plot(x)
t = 1:1e4;
x = 5*sin(2*3.1416*10*t);
plot(x)
t = 1:1e4;
x = 5*sin(2*3.1416*1*t);
plot(x)
Answer: The shape of the waveform is changing over time. This is because the
different frequencies of the sine waves are causing the waveform to oscillate at different
rates. The higher frequency sine waves will cause the waveform to oscillate more
quickly, while the lower frequency sine waves will cause the waveform to oscillate more
slowly.
4.