Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1:10];
y_correct = 6.2048;
assert(isequal(rms_value(x),y_correct))
y =
6.2048
|
2 | Pass |
x = [-5:5];
y_correct = 3.1623;
assert(isequal(rms_value(x),y_correct))
y =
3.1623
|
3 | Fail |
x = [0 0.5 1/sqrt(2) 1 sqrt(2)];
y_correct = sqrt(3)/2;
assert(isequal(rms_value(x),y_correct))
y =
0.8660
|
4 | Pass |
x = [2i i 0 1 2];
y_correct = 0;
assert(isequal(rms_value(x),y_correct))
y =
0
|
5 | Pass |
x = [2i i 0 1 2]';
y_correct = 0;
assert(isequal(rms_value(x),y_correct))
y =
0
|
1421 Solvers
434 Solvers
345 Solvers
110 Solvers
Find Index of maximum Value and maximum Value of a vector
144 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!