Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = {'foo','bar',5,10, {'carrr','starr',{'rita','fereira'}}};
q = ['{''foo'', ''bar'', 5, 10, {''carrr'', ''starr'', '...
'{''rita'', ''fereira''}}};']
assert(isequal(cell2str(x),q))
clear x, q
x = {1,2,3,4};
q = '{1, 2, 3, 4};';
assert(isequal(cell2str(x),q))
clear x,q
x = {{'MLB',{'Red Sox','Yankees'},{'Rangers','Cardinals'}},{'NFL',{'Cowboys','Giants'},{'Patriots','49ers','Ravens'}}};
q = '{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};';
assert(isequal(cell2str(x),q))
q =
{'foo', 'bar', 5, 10, {'carrr', 'starr', {'rita', 'fereira'}}};
q =
{'foo', 'bar', 5, 10, {'carrr', 'starr', {'rita', 'fereira'}}};
q =
{1, 2, 3, 4};
|
Find relatively common elements in matrix rows
865 Solvers
141 Solvers
Back to basics 25 - Valid variable names
293 Solvers
180 Solvers
113 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!