How to plot Power spectral density vs. wavelength for a two dimensional data
Show older comments
I got a two dimensional spatial dataset. The data is a matrix of the size 50 X 50 with a distance of 100 km between data points. The task is to plot a curve of power spectral density versus wavelength. This topic is covered briefly in several geophysical articles for gravity and magnetic data interpretation, but it's never clear how can it be performed in a software. That's why I'm asking how is it possible to do it in Matlab, if it is possible at all? Thank you! Here I showed an example of the expected result.

4 Comments
dpb
on 22 Jun 2019
How does the 2D come into the above plot?
I'm uncertain how one would take spatial data and define a wavelength from it...just what is the data at these points?
Igor Ognev
on 26 Jun 2019
Edited: Igor Ognev
on 26 Jun 2019
OK, so the 2D is smooshed into 1D; that explains the first Q? of what happened to the 2D data.
What's the problem, specifically, with plotting? Other than FFT transforms time into frequency and ergo distance into inverse distance (more precisely cycles/unit distance) so I guess the x-axis has been transformed into its inverse representation as well to be labelled in distance units it appears to be a very straightforward plotting exercise.
Is the plot from your data or some other paper? Reference if so such that somebody could try to reproduce? You could attach your dataset so somebody could at least try something with your data if were inclined.
Bjorn Gustavsson
on 27 Jun 2019
Since, as dpb says, the wavelength is just the inverse of the wavenumber, you should be able to easily modify this sunspot example.
Answers (0)
Categories
Find more on Spectral Measurements 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!