Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%% Example tested
input = 1:3;
output = {'1' '2' '3'};
assert(isequal(matrix2cell(input ),output))
assert(iscell(output),'output must be a cell')
|
2 | Pass |
%%
input = 0:5:8
output = {'0' '5'};
assert(isequal(matrix2cell(input ),output))
assert(iscell(output),'output must be a cell')
input =
0 5
|
3 | Pass |
%% Matrix input
input =magic(3);
output = {'8' '1' '6'
'3' '5' '7'
'4' '9' '2'}
assert(isequal(matrix2cell(input ),output))
output =
'8' '1' '6'
'3' '5' '7'
'4' '9' '2'
|
Find the longest sequence of 1's in a binary sequence.
2445 Solvers
Find state names that end with the letter A
552 Solvers
Number of 1s in the Binary Representation of a Number
319 Solvers
Back to basics 4 - Search Path
280 Solvers
191 Solvers