- It defines y as x padded with 20000 columns on both sides
- It takes the DFT of the real part of the second row of y, shifts it to 0 takes the absolute value and divides by the length of the row.
whats this line do?
1 次查看(过去 30 天)
显示 更早的评论
y=[zeros(10,20000),x,zeros(10,20000)];
y2=abs(fftshift(fft(real(y(2,:)))))/length(y);
thanks!!!
0 个评论
采纳的回答
Sean de Wolski
2011-5-26
0 个评论
更多回答(1 个)
itsik
2011-5-26
1 个评论
Sean de Wolski
2011-5-26
It zero pads x with 10x20000 zeros on each side (columnwise)
try it on a small scale
x = magic(3);
y = [zeros(3,10),x,zeros(3,5)]
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!