blob: 73e93d0350fdb516bcddabdf71b73c94e269e6e9 (
plain)
1
2
3
4
5
6
7
8
9
|
//DFS of sampled periodic signals
xn=[0 ones(2:16) 0 -ones(18:32)];
XDFS=0.032*fft(xn,-1);
for i=1:length(XDFS)
if (abs(XDFS(i))<0.000001) then
XDFS(i)=0;
end
end
disp(XDFS,'The DFS of x[n] is');
|