This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = {'45.5','1:04.8','55.4'};
y_correct = '55.2';
z_correct = '9.7'
[a,b]=mean_std(x);
assert(isequal(a,y_correct)&isequal(b,z_correct))
z_correct =
9.7
ans =
55.2000 9.7000
varargout =
'55.2' '9.7'
|
2 | Pass |
%%
x = {'1:38.4','2:12.9','2:00.6'};
y_correct = '1:57.3';
z_correct = '17.5';
[a,b]=mean_std(x);
assert(isequal(a,y_correct)&isequal(b,z_correct))
ans =
117.3000 17.5000
varargout =
'1:57.3' '17.5'
|
9827 Solvers
1900 Solvers
Back to basics 11 - Max Integer
678 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!