Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 'x = [2,5; 5,5; 4,3];';
y_correct = 'y = [2.5; 5.5; 4.3];';
assert(isequal(translate(x),y_correct))
x = 'x = [2,25; 5,35; 4,13];';
y_correct = 'y = [2.25; 5.35; 4.13];';
assert(isequal(translate(x),y_correct))
ans =
'y = [2.5; 5.5; 4.3];'
ans =
'y = [2.25; 5.35; 4.13];'
|
2472 Solvers
Back to basics 9 - Indexed References
348 Solvers
Change the sign of even index entries of the reversed vector
212 Solvers
Sum the 'edge' values of a matrix
153 Solvers
Pernicious Anniversary Problem
671 Solvers