how to construct the original signal ?
- From: amr <mymail@xxxxxxxxx>
- Date: Fri, 31 Mar 2006 14:16:21 -0500
can you please help me with this ,
with the help of this site i knew how to plot the coeficients of
fourier series expansion of a signal,
now i want to construct the original signal using the coefficients
that were put in a vector called "a"
so i tried this code:
k = -7:8;
a=(1/16)*((sin(5/16*pi.*k))./(sin(pi/16.*k)));
a(k==0) = 5/16;
the above lines shows calulating the coeff in vector "a"
for k=-2:2
for n=-8:7
x=x+a.*exp((j*2*pi.*k.*n)/16);
end
end
stem(x)
the above lines were supposed to sum the coeffs multiplied by
exp((j*2*pi.*k.*n)/16) , where kvaries from -2 to 2 to take only
part of the coeffs to see the effect of increasing the no of coeffs
which will nearly plot the original signal , but unfortunately
nothing happens.
thanks in advance
.
- Prev by Date: Re: Fast way to make small, batch changes to a spa
- Next by Date: cell array (diff size) to matrix
- Previous by thread: Adding LUT to DICOM file
- Next by thread: cell array (diff size) to matrix
- Index(es):