Thread Subject: fft and windows

Subject: fft and windows

From: Judy

Date: 30 Oct, 2008 23:46:02

Message: 1 of 4

Hi all,

I've got two questions for you:
1. Using the fft(x) function, if you don't indicate the N-point, what will MATLAB assume the N point is?

2. Using the window(@wname, N), is it possible to shift it up to the points of interest you are choosing? It looks like by default, it starts with 0 and ends with N. I would just like to window a portion of my fft.

Thanks for your time!!

Subject: fft and windows

From: Rune Allnor

Date: 31 Oct, 2008 03:55:36

Message: 2 of 4

On 31 Okt, 00:46, "Judy " <sauwen...@gmail.com> wrote:
> Hi all,
>
> I've got two questions for you:
> 1. =A0Using the fft(x) function, if you don't indicate the N-point, what =
will MATLAB assume the N point is?

I was going to reply that "This is mentioned in the FFT documentation"
but - surprisingly - it isn't (R2006a).

When you call FFT with an N-length vector x as argument,

X =3D fft(x);

the function returns the N-point FFT.

> 2. =A0Using the window(@wname, N), is it possible to shift it up to the p=
oints of interest you are choosing? =A0It looks like by default, it starts =
with 0 and ends with N. =A0I would just like to window a portion of my fft.

You window the argument to the FFT. If you want
to compute the N-point DFT of a small section of
signal, you do something like

w =3D ... % some N-point window
X =3D fft(x(100:100+N).*w);

Rune

Subject: fft and windows

From: Steven Lord

Date: 31 Oct, 2008 14:40:31

Message: 3 of 4


"Rune Allnor" <allnor@tele.ntnu.no> wrote in message
news:beecad17-3bd3-4128-b76d-ea3d62f4413d@v16g2000prc.googlegroups.com...
> On 31 Okt, 00:46, "Judy " <sauwen...@gmail.com> wrote:
> > Hi all,
> >
> > I've got two questions for you:
> > 1. Using the fft(x) function, if you don't indicate the N-point, what
> > will MATLAB assume the N point is?
>
> I was going to reply that "This is mentioned in the FFT documentation"
> but - surprisingly - it isn't (R2006a).
>
> When you call FFT with an N-length vector x as argument,
>
> X = fft(x);
>
> the function returns the N-point FFT.

You're right, Rune. The documentation doesn't mention this explicitly, but
it does imply that N is the size of the input in the appropriate dimension
(for a vector, it's the length; for an array it's the size in the first
nonsingleton dimension.) I'll put in a request for that to be clarified in
the documentation.

--
Steve Lord
slord@mathworks.com

Subject: fft and windows

From: Judy

Date: 31 Oct, 2008 18:54:02

Message: 4 of 4

Coool. Thanks for clarifying!

Judy

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

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
fft Judy 30 Oct, 2008 19:50:19
window Judy 30 Oct, 2008 19:50:19
rssFeed for this Thread

Contact us at files@mathworks.com