Path: news.mathworks.com!not-for-mail
From: "Chen Sagiv" <chensagivron@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: time and frequency domain
Date: Sun, 11 May 2008 13:26:03 +0000 (UTC)
Organization: Image Processing &#38; Math More
Lines: 61
Message-ID: <g06s5b$9ed$1@fred.mathworks.com>
References: <g03rl9$2pf$1@fred.mathworks.com> <g03tua$bpi$1@fred.mathworks.com>  <97e5fc3c-ddbc-4c0c-abd9-c52e9a3ea38c@s50g2000hsb.googlegroups.com>
Reply-To: "Chen Sagiv" <chensagivron@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210512363 9677 172.30.248.38 (11 May 2008 13:26:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 11 May 2008 13:26:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 805005
Xref: news.mathworks.com comp.soft-sys.matlab:467788


Dear Greg,

I refer you to a previous discussion at:

http://www.mathworks.com/matlabcentral/newsreader/view_threa
d/168642#430044

Chen 

Greg Heath <heath@alumni.brown.edu> wrote in message 
<97e5fc3c-ddbc-4c0c-abd9-
c52e9a3ea38c@s50g2000hsb.googlegroups.com>...
> Corrected for the unforgivable sin of TOP-POSTING!
> 
> On May 11, 7:00=A0am, "Chen Sagiv" 
<chensagiv...@gmail.com> wrote:
> > Greg Heath <he...@alumni.brown.edu> wrote in message
> >
> > <3c59d7c3-618b-44c2-816a-
> > b58be9319...@24g2000hsh.googlegroups.com>...
> >
> > > On May 10, 3:58=3DA0pm, "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 =3D3D zeros(1,512);
> > > > > f1(128:383) =3D3D hamming(256);
> >
> > > > > f2 =3D3D zeros(1,512);
> > > > > f2(128:383) =3D3D 1;
> >
> > > > > fft_f1 =3D3D fftshift(fft(ifftshift(f1),2048));
> > > > > fft_f2 =3D3D fftshift(fft(ifftshift(f2),2048));
> >
> > > Absolutely not!
> >
> > > Hope this helps.
> 
> > Hi Greg,
> >
> > No, it doesn't help. Can you explain your very short
> > response ?
> 
> There is no point to using ifftshift.
> 
> When I ran your code the spectra exhibted hashy
> artifacts.
> 
> Did you cut what you wrote,  paste it into a command
>  line, and compare the plots with the originals??
> 
> The results are obviously incorrect.
> 
> Hope this helps.
> 
> Greg