Consider a periodic square wave with a fundamental period of
π=4. Over the interval β2<
π‘ <2, the square wave is described by:
π₯5(π‘)={3, |π‘|β€0.5
0, |π‘|>0.5
a) [2 pts] what do you expect the Fourier
series coefficients to be?
b) [3 pts] Create a symbolic expression for π₯5(π‘) and then input
that to the int function to
create a symbolic expression for the Fourier series
coefficients.
(Note: You will need to define two symbolic variables for
this.)
c) [5 pts] Use the subs function and your expression from part b)
to determine the Fourier
series coefficients for β100β€π β€100. Plot the resulting Fourier
series coefficients
from -20 to 20 using the stem function. (xlim may be useful
here)
(Note: You will need to calculate the π =0 term separately to avoid
a division by zero
error for this particular function.)
d) [5 pts] Create symbolic expressions of π₯π(π‘) for π=1,3,9,πππ
100, and use fplot
to plot each of the functions on the same plot with π₯5(π‘) for
β2β€π‘β€2.
(Hint: The symsum function can be helpful here. Also, the hold
function will be needed
to put all the plots on the same figure.)
e) [1 pts] What are the values of π₯π(π‘) for π =1,3,9,πππ 100 at π‘
=Β±0.5? Does this
make sense?
Consider a periodic square wave with a fundamental period of 𝑇=4. Over the interval β2< 𝑡 <2, the square
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Consider a periodic square wave with a fundamental period of 𝑇=4. Over the interval β2< 𝑡 <2, the square
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!