code to calculate SNR

 Accepted Answer

Anusha B
Anusha B on 17 Mar 2015

1 vote

Hi Tina,
You can use the function 'snr' which is part of Signal Processing Toolbox, to calculate the signal to noise ratio of a signal.
Refer to this link for details on 'snr':
Hope this helps.

More Answers (2)

kushal
kushal on 17 Mar 2015

0 votes

You can use formula method snr=10*(log10(Vs/Vn))

3 Comments

FORMULA for PSNR will be?
kushal
kushal on 17 Mar 2015
10*log10(peak^2/MSE)
kushal
kushal on 18 Mar 2015
Accept Answer if it helped. Thanks kushal

Sign in to comment.

Amit Kumar
Amit Kumar on 5 Oct 2019

0 votes

hello,
can you help in adjusting line width of snr plot.
I am simply using
snr(sinewave);

Tags

Community Treasure Hunt

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

Start Hunting!