CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   Plotting turbulent energy spectra in Matlab (

nathanpetrelli April 23, 2009 19:18

Plotting turbulent energy spectra in Matlab
Hi guys,
I have one dimensional velocity component stored in a matrix over time. (The different rows represent velocity over different time.)

If I want to plot the turbulent energy spectra from here in Matlab, how do I go about it?

vishyaroon April 24, 2009 08:45

Have you tried the psd functions in MATLAB. I guess there is also a p.welsh command that you can use.

nathanpetrelli April 24, 2009 22:57


Thanks for your reply..

I have been trying to first use fft to change the velocity into wavenumber space. Once I have done this, am trying to apply the pwelch function, but I seem to be getting a garbage plot.Nothing that looks like -5/3, but more like random noise.

All times are GMT -4. The time now is 22:09.