Periodic & Non-Periodic Signals
Explanation
The first signal is a triangular wave which has period of 10 seconds. The second signal is a bunch of noises.
Matlab Code
t = -10:0.0001:10; t1 = -10:0.0001:-5.0001; y1 = t1 + 7.5; t2 = -5:0.0001:-0.0001; y2 = -t2-2.5; t3 = 0:0.0001:4.9999; y3 = t3-2.5; t4 = 5:0.0001:10; y4 = -t4 + 7.5; y = [y1 y2 y3 y4]; subplot(2,1,1); plot(t,y); title('Periodic Signal'); xlabel('time (s)'); ylabel('magnitude'); subplot(2,1,2); tp = -10:0.2:9.8; c = randint(1,100,[1,33]); plot(tp,c); title('Non-periodic Signal'); xlabel('time (s)'); ylabel('magnitude');