Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = magic(3);
y = extroverts(x);
y_c = [4.2500 4.7500 ; 5.2500 5.7500];
assert(max(max(abs(y-y_c)))<1e-9);
|
2 | Pass |
x = [1 2 3 ; 4 5 6];
y = extroverts(x);
y_c = [3 4];
assert(max(max(abs(y-y_c)))<1e-9);
|
3 | Pass |
x=[magic(4) -magic(4)];
y = extroverts(x);
y_c=[8.5 6.5 8.5 0 -8.5 -6.5 -8.5
8 8.5 9 1.5 -8 -8.5 -9
8.5 10.5 8.5 0 -8.5 -10.5 -8.5];
assert(max(max(abs(y-y_c)))<1e-9);
|
4 | Pass |
x = ones(20);
y = extroverts(x);
y_c = ones(19);
assert(max(max(abs(y-y_c)))<1e-9);
|
894 Solvers
253 Solvers
Convert from Base 10 to base 5
203 Solvers
277 Solvers
238 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!