This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 'Help';
y_correct = 'eHpl';
assert(isequal(reverse_within_string(x),y_correct))
|
2 | Pass |
%%
x = 'between';
y_correct = 'tebwnee';
assert(isequal(reverse_within_string(x),y_correct))
[Warning: Integer operands are required for colon operator when used as index]
[> In reverse_within_string at 3
In verifyCode>evaluateCode at 238
In verifyCode at 43
In fevalJSON at 14]
[Warning: Integer operands are required for colon operator when used as index]
[> In reverse_within_string at 3
In verifyCode>evaluateCode at 238
In verifyCode at 43
In fevalJSON at 14]
|
6065 Solvers
495 Solvers
Change the sign of even index entries of the reversed vector
297 Solvers
Who has power to do everything in this world?
318 Solvers
156 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!