Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!24g2000hsh.googlegroups.com!not-for-mail
From: Greg Heath <heath@alumni.brown.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: time and frequency domain
Date: Sat, 10 May 2008 15:47:24 -0700 (PDT)
Organization: http://groups.google.com
Lines: 20
Message-ID: <3c59d7c3-618b-44c2-816a-b58be9319b4d@24g2000hsh.googlegroups.com>
References: <g03rl9$2pf$1@fred.mathworks.com> <g03tua$bpi$1@fred.mathworks.com> 
NNTP-Posting-Host: 69.141.173.117
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1210459644 29579 127.0.0.1 (10 May 2008 22:47:24 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 10 May 2008 22:47:24 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 24g2000hsh.googlegroups.com; posting-host=69.141.173.117; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 
Xref: news.mathworks.com comp.soft-sys.matlab:467740


On May 10, 3:58=A0pm, "Chen Sagiv" <chensagiv...@gmail.com> wrote:
> Hi,
>
> It is not important when you plot the abs of the FT, but
> shouldn't you use instead:
>
> > f1 =3D zeros(1,512);
> > f1(128:383) =3D hamming(256);
>
> > f2 =3D zeros(1,512);
> > f2(128:383) =3D 1;
>
> > fft_f1 =3D fftshift(fft(ifftshift(f1),2048));
> > fft_f2 =3D fftshift(fft(ifftshift(f2),2048));

Absolutely not!

Hope this helps.

Greg