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')
assert(isempty(strfind(filetext, '...')),'... forbidden')
|
2 | Pass |
x=1;
y=1;
assert(isequal(mean_matrix(x),y));
|
3 | Pass |
x = [5 4 8;4 7 8;5 7 8];
y=6.2222;
assert(abs(mean_matrix(x)-y)<0.0001);
|
1800 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
Back to basics 11 - Max Integer
678 Solvers
Is this triangle right-angled?
2874 Solvers
277 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!