Finding row-averaged magnitude spectrum
Show older comments
Hi, I have an image matrix of 512 x 512 and I'm trying to plot the row-averaged magnitude spectrum of this image. The following code is my first attempt to solve this problem. Can anybody help me whether I'm correct or not? Any help would be appreciated.
load blur.mat
for i=1:512
rows = blur(i,:)
rowsFFT = fft(rows,512)
end
plot(abs(rowsFFT))
Accepted Answer
More Answers (0)
Categories
Find more on Programming 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!