Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Parseval's Theorem
Date: Sat, 10 Jan 2009 16:50:03 +0000 (UTC)
Organization: Xoran Technologies
Lines: 14
Message-ID: <gkajjr$h1q$1@fred.mathworks.com>
References: <gkahee$1t3$1@fred.mathworks.com> <gkaj8i$qjj$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1231606203 17466 172.30.248.35 (10 Jan 2009 16:50:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 10 Jan 2009 16:50:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:510775

"Matt " <mjacobson.removethis@xorantech.com> wrote in message <gkaj8i$qjj$1@fred.mathworks.com>...

> MATLAB's fft functions are not normalized so as to be orthonormal operators. Therefore, Parseval's theorem will not hold until you normalize them. To normalize them divide fft(A) by numel(A), as in the following example

Sorry, I meant normalize as  fft(A)/sqrt(numel(A))

Also, to change to grayscale do

>>  colormap(gray)

See "help colormap" and "help gray" to fine tune this.