Path: news.mathworks.com!not-for-mail
From: "Muhammad " <fahrudin_fistek@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Separated the noise
Date: Fri, 26 Dec 2008 04:13:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <gj1lke$nlp$1@fred.mathworks.com>
Reply-To: "Muhammad " <fahrudin_fistek@yahoo.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 1230264782 24249 172.30.248.38 (26 Dec 2008 04:13:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 26 Dec 2008 04:13:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1651062
Xref: news.mathworks.com comp.soft-sys.matlab:508785


dear who considering


i write my simple code under my simple information of matlab function
and post the code in order to benefit other beginner
thanks
I have a problem and I hope any help for me

how to separated the original signal from its noise.

I have a  wave(.wav)
I blend it with noise.
my listing program :
y=wavread(open.wav);
spect=abs(fft(y,1024));
frek= linspace(0,22050,512)
plot(frek,spect(1:512));
% generate and mix the noise.
open_noise=agwn(y,20);

Thank you.