Feeds
답변 있음
Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,
function [mmr,mmm] = minimax(M) N = M'; mmr = max(N)-min(N); mmm = max(max(N))-min(min(N)); end
Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,
function [mmr,mmm] = minimax(M) N = M'; mmr = max(N)-min(N); mmm = max(max(N))-min(min(N)); end
대략 5년 전 | 0
