DSPRelated.com
Forums

Using fft() in Guide MATLAB- HELP PLEASE

Started by james_bond January 17, 2007
Hi all

In the GUI in matlab i am creating a single sin wave with a freq between
1KHz-15Khz in steps 1KHz. In matlab iam using the fft() function to get
the freq specturm and then get mag and find the peak which will give me
the freq. But i need to make a GUI version of this and cant seem to get
any thing to work  . can anyone help or give me a website to look at. 

Thanks 

James_Bond
"james_bond" <james_bond_890@HOTMAIL.COM> wrote in message 
news:_-CdnTAhItZsozPYnZ2dnUVZ_r2onZ2d@giganews.com...
> Hi all > > In the GUI in matlab i am creating a single sin wave with a freq between > 1KHz-15Khz in steps 1KHz. In matlab iam using the fft() function to get > the freq specturm and then get mag and find the peak which will give me > the freq. But i need to make a GUI version of this and cant seem to get > any thing to work . can anyone help or give me a website to look at. > > Thanks > > James_Bond
You say you have a GUI and you need to "make a GUI" ???? I don't understand what you mean when you say: "i am creating a single sin wave with a freq between 1KHz-15Khz in steps 1KHz." I could understand if the steps in the sinusoid were 0.03msec but not steps measured in kHz! I took it to mean that a "single sin wave" would be in the form of sinwt. Perhaps you mean a "stepped frequency sin"? All that aside, what is your problem / objective? That's not clear. Fred
> >"james_bond" <james_bond_890@HOTMAIL.COM> wrote in message >news:_-CdnTAhItZsozPYnZ2dnUVZ_r2onZ2d@giganews.com... >> Hi all >> >> In the GUI in matlab i am creating a single sin wave with a freq
between
>> 1KHz-15Khz in steps 1KHz. In matlab iam using the fft() function to
get
>> the freq specturm and then get mag and find the peak which will give
me
>> the freq. But i need to make a GUI version of this and cant seem to
get
>> any thing to work . can anyone help or give me a website to look at. >> >> Thanks >> >> James_Bond > >You say you have a GUI and you need to "make a GUI" ???? > >I don't understand what you mean when you say: >"i am creating a single sin wave with a freq between 1KHz-15Khz in steps
>1KHz." > >I could understand if the steps in the sinusoid were 0.03msec but not
steps
>measured in kHz! > >I took it to mean that a "single sin wave" would be in the form of sinwt.
>Perhaps you mean a "stepped frequency sin"? > >All that aside, what is your problem / objective? That's not clear. > >Fred > > >
Sorry Fred If not Being clear 1 - I can create a any signal between 1KHz - 15KHz in Steps of 1KHz ie 2KHz,3KHz etc 2- Using a Gui i have to read in the signal i have created and find freq and show it on the screen 3- i done this in the command line version of matlab by using the fft() but cant seem to do this in GUIDE Anything else mate just ask thanks James Bond
"james_bond" <james_bond_890@HOTMAIL.COM> wrote in message 
news:36ydnUdU8bcW1zPYnZ2dnUVZ_smonZ2d@giganews.com...
> > >>"james_bond" <james_bond_890@HOTMAIL.COM> wrote in message >>news:_-CdnTAhItZsozPYnZ2dnUVZ_r2onZ2d@giganews.com... >>> Hi all >>> >>> In the GUI in matlab i am creating a single sin wave with a freq > between >>> 1KHz-15Khz in steps 1KHz. In matlab iam using the fft() function to > get >>> the freq specturm and then get mag and find the peak which will give > me >>> the freq. But i need to make a GUI version of this and cant seem to > get >>> any thing to work . can anyone help or give me a website to look at. >>> >>> Thanks >>> >>> James_Bond >> >>You say you have a GUI and you need to "make a GUI" ???? >> >>I don't understand what you mean when you say: >>"i am creating a single sin wave with a freq between 1KHz-15Khz in steps > >>1KHz." >> >>I could understand if the steps in the sinusoid were 0.03msec but not > steps >>measured in kHz! >> >>I took it to mean that a "single sin wave" would be in the form of sinwt. > >>Perhaps you mean a "stepped frequency sin"? >> >>All that aside, what is your problem / objective? That's not clear. >> >>Fred >> >> >> > Sorry Fred If not Being clear > > 1 - I can create a any signal between 1KHz - 15KHz in Steps of 1KHz ie > 2KHz,3KHz etc > > 2- Using a Gui i have to read in the signal i have created and find freq > and show it on the screen > > 3- i done this in the command line version of matlab by using the fft() > but cant seem to do this in GUIDE > > Anything else mate just ask > > thanks > James Bond
Then I'd suggest comp.soft-sys.matlab as that seems the core of your issues... and, I dunno. Fred