Академический Документы
Профессиональный Документы
Культура Документы
Homework #1
(First define the problem, write down what is given, the quantities to be calculated.)
Solution
(The above equations are given as samples. Using word equation tools, write your own Fourier series
approximation and signal function.)
Source Code:
N = 100000;
Wo = pi/5;
t = -1:.001:11;
f = zeros(1,length(t));
for n = 1:2:N
an = 4/(pi*n);
f = f+ an*sin(Wo*n*t);
end
plot(t,f)
axis([-1 11 -1.1 1.1])
title(['Fourier Series Representation w/ ' num2str(N) '
Terms'],'FontSize',16)
xlabel('Time')
ylabel('Function Value')