フィルターのクリア

How to plot Power spectral density vs. wavenumber for a two dimensional data

8 ビュー (過去 30 日間)
math seeker
math seeker 2019 年 2 月 8 日
回答済み: Bjorn Gustavsson 2019 年 2 月 8 日
I have a two dimansional spatial data. The data is a matrix of the size 430 X 430 with a distance of 2 km between data points. I want to plot a curve of power spectral density of the data versus wave number. How can I do it in Matlab

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2019 年 2 月 8 日
Well for the power-spectral density of the entire image you can just look at the power of the 2-D fft:
fData = fft2(d); % pad with zeros as you see fit to avoid aliasing
imagesc(log10(abs(fftshift(fData)).^2))
HTH

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by