Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
s1 = 'He said ''Look over there!''';
s2_correct = 'He said ''''Look over there!''''';
assert(isequal(quote_doubler(s1),s2_correct))
ans =
He said ''Look over there!''
|
2 | Pass |
%%
s1 = '''';
s2_correct = '''''';
assert(isequal(quote_doubler(s1),s2_correct))
ans =
''
|
Renaming a field in a structure array
732 Solvers
338 Solvers
701 Solvers
858 Solvers
1223 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!