Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
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))
kernel_length =
4
|
2 | Pass |
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))
kernel_length =
5
|
3 | Pass |
x = ones(1,10);
kernel_length=5
y_correct = ones(1,6);
assert(isequal(moving_avg(x,kernel_length),y_correct))
kernel_length =
5
|
Return a list sorted by number of occurrences
1504 Solvers
2183 Solvers
Remove the two elements next to NaN value
411 Solvers
Fahrenheit to Celsius converter
358 Solvers
484 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!