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
Using fft() in Guide MATLAB- HELP PLEASE
Started by ●January 17, 2007
Reply by ●January 17, 20072007-01-17
"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_BondYou 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
Reply by ●January 17, 20072007-01-17
> >"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 freqbetween>> 1KHz-15Khz in steps 1KHz. In matlab iam using the fft() function toget>> the freq specturm and then get mag and find the peak which will giveme>> the freq. But i need to make a GUI version of this and cant seem toget>> 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 notsteps>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
Reply by ●January 17, 20072007-01-17
"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 BondThen I'd suggest comp.soft-sys.matlab as that seems the core of your issues... and, I dunno. Fred