Hassan
Followers: 0 Following: 0
Programming Languages:
C++
Spoken Languages:
English
Pronouns:
He/him
C++
Spoken Languages:
English
Pronouns:
He/him
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) mmr=[abs(max(M(1:end,:).')-min(M(1:end,:).'))]; mmm=max(M(:))-min(M(:)); 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) mmr=[abs(max(M(1:end,:).')-min(M(1:end,:).'))]; mmm=max(M(:))-min(M(:)); end
1 year 前 | 0