Dear friends some problems with TestBench
assert(isequal(rms_value(x),y_correct))
??? Assertion failed.
I don't know why it happens....
format long
rms_value(x)
ans =
6.204836822995429
The assertion calls in the last two checks will always fail because they are missing a ). This problem is unsolvable until it gets fixed.
there is certainly some problem wid the test suite...
Please correct or remove test suite 3 : x = [0 0.5 1/sqrt(2) 1 sqrt(2)];
Bad test cases!
The RMS is defined as the root-mean-squared deviation *from the mean*, not from zero ... so I think the whole test suite needs fixing.
All but one of the test cases require solutions truncated to an arbitrary precision. The other expects an exact solution, but not quite the exact solution I arrive at. Maybe RMS has a special connotation I've forgotten when it involves complex numbers?
6313 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
141 Solvers
118 Solvers
Create an n-by-n null matrix and fill with ones certain positions
280 Solvers
380 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!