Blimpy325
Newbie level 1
how to plot square wave using harmonics in matlab
Hello, I need some help on this problem.
A square wave has an amplitude of 10 and a fundamental frequency of 50 Hz. First, plot the frequency spectrum of this wave. Use Matlab or Excel to construct the wave usind the cosines that form its basis. To start, assume it is made up of the fundamental, 3rd, 5th, 7th. and 9th harmonics. Plot the resulting waveform. Next, extend the number of cosine terms to the 29th harmonic. Plot the resulting waveform.
That is the problem that I was given. It has been a while since I have used MATLAB and I was wondering if someone could give me some general instructions as to what I should do in order to get a plot of the wave. Thank you.
Hello, I need some help on this problem.
A square wave has an amplitude of 10 and a fundamental frequency of 50 Hz. First, plot the frequency spectrum of this wave. Use Matlab or Excel to construct the wave usind the cosines that form its basis. To start, assume it is made up of the fundamental, 3rd, 5th, 7th. and 9th harmonics. Plot the resulting waveform. Next, extend the number of cosine terms to the 29th harmonic. Plot the resulting waveform.
That is the problem that I was given. It has been a while since I have used MATLAB and I was wondering if someone could give me some general instructions as to what I should do in order to get a plot of the wave. Thank you.