- 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?
    7 views (last 30 days)
  
       Show older comments
    
y=[zeros(10,20000),x,zeros(10,20000)];
y2=abs(fftshift(fft(real(y(2,:)))))/length(y);
thanks!!!
0 Comments
Accepted Answer
  Sean de Wolski
      
      
 on 26 May 2011
        0 Comments
More Answers (1)
  itsik
 on 26 May 2011
        1 Comment
  Sean de Wolski
      
      
 on 26 May 2011
				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)]
See Also
Categories
				Find more on Fourier Analysis and Filtering in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
