- #1
zuelhuzz
- 1
- 0
The problem are as below :-
f(x) = {
x, for 0 < x < pi/2;
x/2, for pi/2 < x < pi;
pi-(x/2), for pi < x < 2*pi;
how do I convert it to Matlab code and produce a graph of Fourier series with n=500?
I have done analytically by hand for n=2, but the question ask to produce n=500, can anybody help?
f(x) = {
x, for 0 < x < pi/2;
x/2, for pi/2 < x < pi;
pi-(x/2), for pi < x < 2*pi;
how do I convert it to Matlab code and produce a graph of Fourier series with n=500?
I have done analytically by hand for n=2, but the question ask to produce n=500, can anybody help?