Problem 43970. Calculate SNR in dB using original signal and quantized signal

Solution 1091813

Submitted on 28 Dec 2016 by mohamad Alhaddad
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
origs = [100 200 300]; quants = [99 198 297]; SNR = 40; assert(isequal(calcSNRdB(origs,quants),SNR))

SNR = 40

Suggested Problems

Community Treasure Hunt

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

Start Hunting!