# Finding signal to noise ratio

조회 수: 8(최근 30일)
Tinkul 2014년 5월 8일
댓글: cbentter 2020년 4월 2일
I have a signal x=[34;56;12;87;35]
I have added some noise with the signal x. After denoising i have got the output
x0=[ 33.88;55;11.11;86.77;34.99]

댓글을 달려면 로그인하십시오.

### 채택된 답변

Sven 2014년 5월 8일
편집: Sven 2014년 5월 8일
Hi Tinkul, does this help you out? I assume that the values you gave are already in your desired units (although true SNR is based on power of signals, not necessarily the signals themselves)
signal = [34;56;12;87;35]
response = [ 33.88;55;11.11;86.77;34.99]
noise = response - signal
rawratio = signal ./ abs(noise)
snr = 10*log10(rawratio)
ans =
24.5230
17.4819
11.2979
25.7779
35.4407
This shows that in your observations the signal is in the order of hundreds of times greater than the noise between true and measured response (in the rawratio variable). Signal-to-noise ratio is often (usually) given in decibels (db) which is 10log10(signal/noise)
##### 댓글 수: 1표시숨기기 없음
cbentter 2020년 4월 2일
But if you only have the signal with the noise?

댓글을 달려면 로그인하십시오.

### 범주

Find more on Parametric Spectral Estimation in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by