help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Waterfall Plot in Octave


From: Mike Miller
Subject: Re: Waterfall Plot in Octave
Date: Mon, 22 Apr 2013 22:33:00 -0400

On Mon, Apr 22, 2013 at 10:41 AM, scigeek wrote:
> Can anyone provide some help/suggestions with how to get a waterfall plot in
> Octave ?

Do you mean something like this?

  [x, Fs] = wavread ("/usr/share/sounds/alsa/Front_Left.wav");
  nfft = 128;
  [S, f, t] = specgram (x, nfft, Fs);
  ff = f' * ones (1, length (t));
  tt = ones (length (f), 1) * t;
  surf (ff, tt, 20*log10 (abs (S)))

HTH,

-- 
mike


reply via email to

[Prev in Thread] Current Thread [Next in Thread]