Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = char([97:1:122]);
y_correct = char([122:-1:97]);
assert(isequal(rs(x),y_correct))
ans =
zyxwvutsrqponmlkjihgfedcba
|
2 | Pass |
%%
x = 'HOW';
y_correct = 'WOH';
assert(isequal(rs(x),y_correct))
ans =
WOH
|
Flip the main diagonal of a matrix
426 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
264 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
231 Solvers
264 Solvers
Matlab Basics - y as a function of x
242 Solvers