[Solved]1 Periodic Waveform Frequency F Shape Square Waves Triangle Waves Sawtooth Waves Etc Const Q37196685

can someone help me solve this problem by using matlab?
1. A periodic waveform of frequency f having any shape (square waves, triangle waves, sawtooth waves, etc.) can be constructed by adding up appropriately weighted cosine or sine waves of frequency f and all harmonis off (i.e., cos lr/t,cs6πft, cos 8nft, cos 10πft, . . .). For example, a familiar waveform of frequency f can be constructed from the series: Tri(t)–Σ Write a little MatLab program that shows this graphically by displaying four plots for the specific case where f-1 and in the variable range t–3 to t-3. The first plot should Just show the first term in the series above. The second plot should show the sum of the first two terms in the series (i.e. compute Tri(t) for k 0 to k ). The third plot should show the first three terms in the series (ie, compute Tri(t) for k = 0 to k-2), and the fourth plot should show the first four terms in the series (i.e. compute Tri(t) for k 0 to k 3). All plots should be plotted from t = 3 to t = 3, and all four plots should be shown in the same figure by using the Mat Lab command subplot (2,2,x) before each of the four plot) commands, with x 1, 2, 3, or 4 respectively. Show transcribed image text 1. A periodic waveform of frequency f having any shape (square waves, triangle waves, sawtooth waves, etc.) can be constructed by adding up appropriately weighted cosine or sine waves of frequency f and all harmonis off (i.e., cos lr/t,cs6πft, cos 8nft, cos 10πft, . . .). For example, a familiar waveform of frequency f can be constructed from the series: Tri(t)–Σ Write a little MatLab program that shows this graphically by displaying four plots for the specific case where f-1 and in the variable range t–3 to t-3. The first plot should Just show the first term in the series above. The second plot should show the sum of the first two terms in the series (i.e. compute Tri(t) for k 0 to k ). The third plot should show the first three terms in the series (ie, compute Tri(t) for k = 0 to k-2), and the fourth plot should show the first four terms in the series (i.e. compute Tri(t) for k 0 to k 3). All plots should be plotted from t = 3 to t = 3, and all four plots should be shown in the same figure by using the Mat Lab command subplot (2,2,x) before each of the four plot) commands, with x 1, 2, 3, or 4 respectively.
Expert Answer
Answer to 1. A periodic waveform of frequency f having any shape (square waves, triangle waves, sawtooth waves, etc.) can be const… . . .
OR

