Line enhancer code in Matlab

Hello all,
Can anyone tell me the code for a line enhancer with white gaussioan noise of SNR=10 dB.
I tried this one, but it's not working like line enhancer:
sig = 4.5*(sin(2*pi*(0:1:1999)*(1/10)));
noise=wgn(1,length(sig),0);
sig_plus_noise = sig + noise;
s=(sig_plus_noise)';
snr(sig,noise);
Thank you,
Shruthi Sampathkumar

4 件のコメント

Walter Roberson
Walter Roberson 2016 年 6 月 28 日
You calculate the signal to noise ratio there, but I do not see any code that attempts to "enhance" a line? Unless adding noise to the line is considered to be enhancing it??
Shruthi Sampathkumar
Shruthi Sampathkumar 2016 年 6 月 28 日
Is my code (sig) correct for a line enhancer? Should it be some cos function?
Thank you
Walter Roberson
Walter Roberson 2016 年 6 月 28 日
Your sig is the input signal, not a signal used to control the line enhancement. It is whatever it is. It could be music.
Image Analyst
Image Analyst 2016 年 6 月 28 日
No, that does not make an enhanced line. You're simply adding noise to a sine wave. To enhance it you might try a filter, like using conv() with a kernel with positive and negative weights or something.

サインインしてコメントする。

回答 (0 件)

質問済み:

2016 年 6 月 28 日

コメント済み:

2016 年 6 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by