統計
MATLAB Answers
0 質問
1 回答
ランク
of 171,460
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
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
3年弱 前 | 0
