Cody

Solution 1191253

Submitted on 17 May 2017
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   Fail
osig = [100 200 300]; qerror = [1 2 3]; y =40; assert(isequal(snrdB(osig,qerror),y))

Error using ^ One argument must be a square matrix and the other must be a scalar. Use POWER (.^) for elementwise power. Error in snrdB (line 2) snr =10*log10(sum(osig^2)/sum(qerror^2)) ; Error in TestPoint1 (line 4) assert(isequal(snrdB(osig,qerror),y))