Path: news.mathworks.com!not-for-mail
From: "jay vaughan" <jvaughan5.nospam@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: time and frequency domain
Date: Sat, 10 May 2008 16:34:02 +0000 (UTC)
Organization: harvard
Lines: 21
Message-ID: <g04ipq$nbi$1@fred.mathworks.com>
References: <g03rl9$2pf$1@fred.mathworks.com> <g03tua$bpi$1@fred.mathworks.com>
Reply-To: "jay vaughan" <jvaughan5.nospam@gmail.com>
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 1210437242 23922 172.30.248.37 (10 May 2008 16:34:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 10 May 2008 16:34:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1215048
Xref: news.mathworks.com comp.soft-sys.matlab:467716



"Lars " <mustermann.klaus.TO.REMOVE@gmx.de> wrote in message
<g03tua$bpi$1@fred.mathworks.com>...
> I don't have the chzech-toolbox installed. Sorry!

Try this.

f1 = zeros(1,512);
f1(128:383) = hamming(256);

f2 = zeros(1,512);
f2(128:383) = 1;

fft_f1 = fftshift(fft(f1,2048));
fft_f2 = fftshift(fft(f2,2048));

subplot(2,2,3); plot(f1);
subplot(2,2,1); plot(f2);
subplot(2,2,4); plot(abs(fft_f1)); xlim([896 1151])
subplot(2,2,2); plot(abs(fft_f2)); xlim([896 1151])

J