Good day, Please I've been stuck on this assignment for awhile now, i got the second part but the first part can't seem to make it work with random numbers. Had an eureka with 'mmm' and it was thrilling but my assignment is 'over' overdue and i really need a guide to solve 'mmr' properly. i'll greatly appreciate any help. Thank you
Here's what i've achieved so far.
mmr works but not with random numbers and it seems cumbersome.
function [mmr,mmm] = minimaxTrial(M) A = ([M]); A_max = max(A,[],'all'); A_min = min (A,[],'all'); mmm = (A_max - A_min); [row,col] = size(A); C_1 = (A(1,1:col)); C_2 = (A(2,1:col)); C_3 = (A(3,1:col)); C_4 = (A(n,1:col)); M1 = max(C_1) - min(C_1); M2 = max(C_2) - min(C_2); M3 = max(C_3) - min(C_3); M4 = max(c_4) - min(C_4); mmr =[M1, M2, M3, M4];end
Best Answer