help me to find the last required in this question please

1 view (last 30 days)
Rama a
Rama a on 7 Jun 2021
Commented: Walter Roberson on 9 Jun 2021
I have this question ... I solved the first three required
but I dont know what to do with the last one ( last required )
please help me to solve the last one
A. Generate and plot x1(t) for one period.
B. Generate and plot xb(t)=x1(t)+x2(t) for one period.
C. Generate and plot xc(t)=x1(t)+x2(t) +x3(t) for one period. Show all the results on one figure using subplot
D. Determine, using Matlab plots, if the generated signals are periodic or not.
syms x1 x2 x3 m n t;
%The period of signals, x1, xb and xc, is 1/5
% (5 is the frequency for x1)
fplot(x1,[0 0.2]);
title ('x1=sin(10.*pi.*t)');
fplot(xb,[0 0.2]);
title ('xb= x1+x2');
subplot(2,2,[3 4]);
fplot(xc,[0 0.2]);
title ('xc=x1+x2+x3');

Answers (3)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 8 Jun 2021

Walter Roberson
Walter Roberson on 8 Jun 2021
A signal is periodic if at some time t, it starts to repeat the same values, with time t*2 being another repeat and so on.
A sine wave with time 2*pi*F1 repeats itself F1 times per second. A sine wave with time 2*pi*F2 repeats itself F2 times per second. At time F1*F2 with F1 and F2 integer, you will have repeated the first signal due to F1, and the second signal due to F2. Therefore sin(2*pi*F1*t) + sin(2*pi*F2*t) will repeat itself no later than t = F1*F2 and must be periodic.
You know have a periodic signal based upon the sum of the first two signals, and you have a third signal that is another sine wave. By the same reasoning as before, there exists some time for which the composite signal and the third signal both repeat. Therefore the sum of the three signals is periodic.
This logic can be made more rigourous. The actual time required is much less than hinted at above. The logic does not actually require that F1, F2, F3 all be integers: it does require, though, that F1, F2, F3 all be rational (unless... well, I have to leave some of the reasoning to you.)
The question only asks whether the signal is periodic. You are not required to figure out the period.

Chunru on 8 Jun 2021
Changing the plotting time from 0.2 to a larger value (for example, 1), Matlab plots will give you the visual ouptput to show if the signal is periodic or not (signal repeating itself or not).
Walter Roberson
Walter Roberson on 9 Jun 2021
If you were to rewrite from
and likewise for x2, x3, then you could show peridocity graphically by determining the period, P, and graphing x(t) - x(t+N*P) for integer N (preferably larger N). The fact that the difference was 0 to within round-off would be good evidence, especially if you tried several different random N (if you only tried one fixed N, then you could be accused of having accidentally or deliberately referred to a section of signal that just looked similar to the original signal even though the signal was (hypothetically) not really periodic.)

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by