Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
filetext = fileread('combineCells.m');
assert(isempty(strfind(filetext, 'for')))
assert(isempty(strfind(filetext, 'while')))
|
2 | Pass |
%%
x = {{'cody';'players'};{'are';'great'}};
y_correct = {'cody';'players';'are';'great'};
assert(isequal(combineCells(x),y_correct))
|
3 | Pass |
%%
x = {{'A';'B';'C'};{'D';'E'};{'F';'G';'H';'I';'J'}};
y_correct = {'A';'B';'C';'D';'E';'F';'G';'H';'I';'J'};
assert(isequal(combineCells(x),y_correct))
|
4 | Pass |
%%
x = {{'A';'B';'C'};{'D';'E'};{'F';'G';'H';'I';'J';'K'}};
y_correct = {'A';'B';'C';'D';'E';'F';'G';'H';'I';'J';'K'};
assert(isequal(combineCells(x),y_correct))
|
5 | Pass |
%%
x = {{'A';'B';'C';'toPreventLittleCheats'};{'D';'E'};{'F';'G';'H';'I';'J'}};
y_correct = {'A';'B';'C';'toPreventLittleCheats';'D';'E';'F';'G';'H';'I';'J'};
assert(isequal(combineCells(x),y_correct))
|
How to find the position of an element in a vector without using the find function
2477 Solvers
Back to basics 6 - Column Vector
908 Solvers
Vectorizing, too easy or too hard?
128 Solvers
1160 Solvers
87 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!