Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Ifft on modified array fails
Date: Fri, 6 Nov 2009 21:10:21 +0000 (UTC)
Organization: Xoran Technologies
Lines: 8
Message-ID: <hd23bt$l4f$1@fred.mathworks.com>
References: <hd1tr4$9lk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257541821 21647 172.30.248.37 (6 Nov 2009 21:10:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Nov 2009 21:10:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:583121


"Travis Bland" <travisbland88@yahoo.com> wrote in message <hd1tr4$9lk$1@fred.mathworks.com>...
> My end goal is to take an array, fft, set a range of frequencies equal to 0, and then ifft.
> I get stuck once i set anything equal to 0. My ifft output is still complex. I stopped using my code, and just got an array in the workspace, manually changed a few entries to 0, and then tried plot(ifft(vf)) - i got scribbles, and complex results.
=======

We need to see more.

Why do you expect to get real output from the ifft? Is it a symmetric spectrum? Are the frequencies being set to 0 in such a way as to preserve this symmetry?