- #1
d2009
- 2
- 0
Homework Statement
a) Write a Matlab function, which accepts the following inputs
-a finite set of Fourier series coefficients
-the fundamental period T of the signal to be reconstructed
-a vector t representing the times for which the signal will be reconstructed
Homework Equations
The Attempt at a Solution
function fourier1=f(a,T,t)
fourier1=zeros(length(a),1);
for n=1:length(a)
fourier1(n)=(a(n)*exp((i*(2*pi/T)*n*t)));
end;