[mirtoolbox] Re: Mirspectrum
- From: Hendrik Schreiber <hs@xxxxxxxxxxxx>
- To: mirtoolbox@xxxxxxxxxxxxx
- Date: Thu, 21 Apr 2011 16:40:58 +0200
On Apr 20, 2011, at 10:40 AM, ivonne julietta wrote:
> Thank you Hendrik. You help me to understanding the two different frame
> length.
> If i write the command as you give me:
> a=miraudio('Laksin')
> f=mirspectrum(a, 'Length', 8192, 'Frame', 0.04)
> it produce a figure with time axis and frequency axis. But, actually i need a
> figure with frequency axis and amplitude axis (dB). How can i produce it?
> And also how can i get the power amplitude spectrum values?not as a figure
> but as a tuple of data (frequency and amplitude),for example when the
> frequency 50hz, the amplitude 20dB.
Hi,
you can get to the data of any of these mirtoolbox types with
data = get(a, 'Data')
I believe there is an option for mirspectrum that lets you access the dB.
Please check the manual.
-hendrik
Other related posts: