Path: news.mathworks.com!not-for-mail
From: "Yuji Zhang" <yuji.zhang@tufts.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Parseval's Theorem
Date: Mon, 13 May 2013 18:18:10 +0000 (UTC)
Organization: Tufts University
Lines: 13
Message-ID: <kmrap2$b01$1@newscl01ah.mathworks.com>
References: <gkahee$1t3$1@fred.mathworks.com> <1d0a6b1e-94f8-43e9-811d-aedfab2fe755@n2g2000vbl.googlegroups.com> <gpbvpf$ivd$1@fred.mathworks.com> <kmqg9f$ffb$1@newscl01ah.mathworks.com> <kmqgqb$gj9$1@newscl01ah.mathworks.com>
Reply-To: "Yuji Zhang" <yuji.zhang@tufts.edu>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1368469090 11265 172.30.248.45 (13 May 2013 18:18:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 13 May 2013 18:18:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2930911
Xref: news.mathworks.com comp.soft-sys.matlab:795460

I checked this:

g = time-domain function
G = fftshift(fft(fftshift(g)))*dt;
df = 1/(N*dt);
>> sum(g.*conj(g))*dt
ans =
    0.0707
>> sum(G.*conj(G))*df
ans =
    0.0707

seems it's working. Can anyone familiar with this confirm/comment/correct this? Thanks a lot~