This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
filetext = fileread('mean_matrix.m');
assert(isempty(strfind(filetext, 'mean(')),'mean forbidden')
assert(isempty(strfind(filetext, 'mean (')),'mean forbidden')
|
2 | Pass |
%%
x=1;
y=1;
assert(isequal(mean_matrix(x),y));
m =
1
n =
1
z =
1
y =
1
|
3 | Pass |
%%
x = [5 4 8;4 7 8;5 7 8];
y=6.2222;
assert(abs(mean_matrix(x)-y)<0.0001);
m =
3
n =
3
z =
14 18 24
y =
6.2222
|
1726 Solvers
1763 Solvers
381 Solvers
695 Solvers
Getting the indices from a vector
3207 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!