Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
A = rand;
B = matsplit(A);
assert(isequal(B,A))
Error: Cell contents reference from a non-cell array object.
|
2 | Fail |
%%
A = 1:4;
[B,C,D,E] = matsplit(A);
assert(isequal(B,1))
assert(isequal(C,2))
assert(isequal(D,3))
assert(isequal(E,4))
Error: Cell contents reference from a non-cell array object.
|
3 | Fail |
%%
A = magic(3);
[B,C,D] = matsplit(A);
assert(isequal(B,8))
assert(isequal(C,3))
assert(isequal(D,4))
Error: Cell contents reference from a non-cell array object.
|
4 | Fail |
%%
A = eye(4);
[B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q] = matsplit(A);
assert(isequal(B,1))
assert(isequal(C,0))
assert(isequal(D,0))
assert(isequal(E,0))
assert(isequal(F,0))
assert(isequal(G,1))
assert(isequal(H,0))
assert(isequal(I,0))
assert(isequal(J,0))
assert(isequal(K,0))
assert(isequal(L,1))
assert(isequal(M,0))
assert(isequal(N,0))
assert(isequal(O,0))
assert(isequal(P,0))
assert(isequal(Q,1))
Error: Cell contents reference from a non-cell array object.
|
5 | Fail |
%%
A = fliplr(primes(100))';
B = matsplit(A);
assert(isequal(B,97))
Error: Cell contents reference from a non-cell array object.
|
3968 Solvers
random picture with random colours
138 Solvers
126 Solvers
Sort the vector with the given index
98 Solvers
Find Out sum of principal diagonal element of given matrix
194 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!