Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
x = 1:10;
kernel_length=4
y_correct = [ 2.5000 3.5000 4.5000 5.5000 6.5000 7.5000 8.5000];
assert(isequal(moving_avg(x,kernel_length),y_correct))
Error: Assertion failed.
|
2 | Fail |
%%
x = 10:20;
kernel_length=5
y_correct = [ 12.0000 13.0000 14.0000 15.0000 16.0000 17.0000 18.0000];
assert(isequal(moving_avg(x,kernel_length),y_correct))
Error: Assertion failed.
|
3 | Fail |
%%
x = ones(1,10);
kernel_length=5
y_correct = ones(1,6);
assert(isequal(moving_avg(x,kernel_length),y_correct))
Error: Assertion failed.
|
Extract leading non-zero digit
1205 Solvers
Getting the row and column location from a matrix
236 Solvers
Calculate the area of a triangle between three points
871 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
140 Solvers
130 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!