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))
p =
4
j =
pleH
ans =
eHpl
|
2 | Pass |
%%
x = 'between';
y_correct = 'tebwnee';
assert(isequal(reverse_within_string(x),y_correct))
p =
7
j =
neewteb
[Warning: Integer operands are required for colon operator when used as index]
[> In reverse_within_string at 7
In verifyCode>evaluateCode at 231
In verifyCode at 40
In fevalJSON at 14]
[Warning: Integer operands are required for colon operator when used as index]
[> In reverse_within_string at 7
In verifyCode>evaluateCode at 231
In verifyCode at 40
In fevalJSON at 14]
ans =
tebwnee
|
309 Solvers
Back to basics 23 - Triangular matrix
634 Solvers
579 Solvers
The sum of the numbers in the vector
426 Solvers
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!