Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = {'I','love','MATLAB'};
y_correct = string({'I','love','MATLAB'});
assert(isequal(cell2str(x),y_correct))
|
2 | Pass |
x = {'I', '', '', 'MATLAB'};
y_correct = string('I'); y_correct(4) = 'MATLAB';
assert(isequaln(cell2str(x),y_correct))
|
3 | Pass |
x = {'I', '', 'MATLAB'
'', 'love', 'MATLAB'
'I', 'love', '' };
y_correct = [string('I'), string(NaN), string('MATLAB')
string(NaN), string('love'), string('MATLAB')
string('I'), string('love'), string(NaN) ];
assert(isequaln(cell2str(x),y_correct))
|
Sum all integers from 1 to 2^n
8414 Solvers
190 Solvers
Compute a dot product of two vectors x and y
750 Solvers
559 Solvers
202 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!