Cody

Solution 2233679

Submitted on 25 Apr 2020 by Laza Álmos
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

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));

row = 1 col = 1 a = 0 a = 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);

row = 3 col = 3 a = 0 a = 5 a = 9 a = 17 a = 21 a = 28 a = 36 a = 41 a = 48 a = 56 y = 6.2222