The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: PSD for wav file
Replies: 1   Last Post: Dec 31, 2014 8:59 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 7/25/13
PSD for wav file
Posted: Jul 25, 2013 12:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi there. I'm trying to see the power spectral density of a wav file. I have been plotting spectrograms with success (specgram), but I'm having trouble creating a PSD plot with frequency on x axis so hoping someone can offer me some help. I'm pretty new to matlab, so I'm having some difficulty understanding the descriptions of how the functions work in the docs.

so to load the wav file:

wavin='s07051532 (10)H';
wavfs=44100; %sAMple frequency
secs=600; %it's a ten minute file
y=wavread(wavin,[n1 n2]);

so then I have been trying to use the PSD function on 'y'.

The signal processing tool has allowed me to plot a PSD of the wav file straight up, but I want to do it through the command prompt as I would like to combine some other plots on there etc

Any help would be fantastic, thanks

Date Subject Author
Read PSD for wav file
Read Re: PSD for wav file
Saurabh Kataria

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.