| MATLAB Central > MATLAB Newsreader > simulink fft of sinewave |
|
|
|
Hi I am having problems getting the frequency spectrum of a sine wave in simulink. |
|
The zero-hold is set to .01 |
|
Subject: simulink fft of sinewave From: Ashwini Deshpande Date: 13 Nov, 2009 04:43:02 Message: 3 of 8 |
|
"Tc Simons" <tcsimons@ualr.edu> wrote in message <hdilvb$cap$1@fred.mathworks.com>... |
|
"Ashwini Deshpande" <vd.ashwini@mathworks.com> wrote in message <hdio4m$oom$1@fred.mathworks.com>... |
|
Subject: simulink fft of sinewave From: Ashwini Deshpande Date: 13 Nov, 2009 06:42:07 Message: 5 of 8 |
|
> SINE WAVE |
|
> Try changing the FFT SPECTRUM BLOCK parameters to: |
|
Subject: simulink fft of sinewave From: Ashwini Deshpande Date: 13 Nov, 2009 09:56:04 Message: 7 of 8 |
|
"Tc Simons" <tcsimons@ualr.edu> wrote in message <hdj4np$dmf$1@fred.mathworks.com>... |
|
Ok now I see how it works in simulink. After that starting working I modified the setup and now in simulink I have a sinewave generator that sends it's data back to the workspace. In matlab I am now trying to do the fft here and encountering another problem. The sinewave is 5hz but when I stem plot the fft in mathlab the spike is now at11hz instead of 5hz. |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| simulink | Tc Simons | 12 Nov, 2009 22:44:04 |
| spectrum scope | Tc Simons | 12 Nov, 2009 22:44:04 |
| stem | Tc Simons | 12 Nov, 2009 22:44:04 |
Contact us at files@mathworks.com
