Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = string({'I','love','MATLAB'});
y_correct = {'I','love','MATLAB'};
assert(isequal(str2cell(x),y_correct))
y =
1×3 cell array
{'I'} {'love'} {'MATLAB'}
|
2 | Pass |
x = string({'I','love','MATLAB';'I','love','Cody'});
y_correct = {'I','love','MATLAB'
'I','love','Cody'};
assert(isequal(str2cell(x),y_correct))
y =
2×3 cell array
{'I'} {'love'} {'MATLAB'}
{'I'} {'love'} {'Cody' }
|
Extract leading non-zero digit
1205 Solvers
348 Solvers
376 Solvers
161 Solvers
Given a square and a circle, please decide whether the square covers more area.
351 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!