Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
A=[3,5,7,90,1;5,1,-1,0,2;1,2,3,4,70;23,1,2,3,5];
B= 23.75;
tolerance = 1e-2 ;
assert(abs(adjacent_averaging(A)-B)<tolerance);
ans =
90 4 2 -1
|
2 | Pass |
%%
A=[1,1,0,1,1;2,2,2,2,2;3,3,3,3,3;4,4,4,4,4];
B= 1.3333;
tolerance = 1e-2 ;
assert(abs(adjacent_averaging(A)-B)<tolerance);
ans =
0 2 1 1
|
3 | Pass |
%%
A=[3,3,3,90,2;5,3,-1,6,4;2,0,5,6,80;12,9,12,13,15];
B= 4.75;
tolerance = 1e-2 ;
assert(abs(adjacent_averaging(A)-B)<tolerance);
ans =
3 9 5 2
|
Increment a number, given its digits
562 Solvers
Solve the set of simultaneous linear equations
273 Solvers
584 Solvers
Determine Whether an array is empty
646 Solvers
141 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!