I had a Fourier series f(t) = {0 -pi< t <= 0 {t 0 <=t < pi and found out that a0
ID: 1810521 • Letter: I
Question
I had a Fourier series
f(t) = {0 -pi< t <= 0
{t 0 <=t < pi
and found out that
a0 = pi/2
an = -2
bn = 2t
thus, f(t) = pi/4 + {sum from n=1 to infinity}(-2cos(nt) + 2tsin(n)t)
Now I have to plot the resulting series for n = 1,3,5,7,9,11 for t = -4 to 4
I'm supposed to plot seperately each n, with the original plot superimposed on the same plot.
This has to be done in matlab, but I don't know how to do it.
The problem is that I cannot use the symbols function in Matlab, as my version doesn't have the symolic math toolbox. I read that I have to do it using for loops, but I don't know how. Can someone please show me how to do this in matlab? Thank you!!
Explanation / Answer
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.