フィルターのクリア

Vector of min or max for 3 vectors

14 ビュー (過去 30 日間)
judy abbott
judy abbott 2017 年 9 月 17 日
回答済み: Jan 2017 年 9 月 17 日
Please for A, B and C vectors as:
A = [2; 0; -4; 4];
B = [0; -6; -2; 1];
C = [4; 1.5; 4; -2];
i need to get the min for each vector row: min (2, 0 and 4) = 0 and stock them in a vector,
VMIN = [0; -6; -4; -2]
VMAX = [4; 1.5; 4; 4]
  1 件のコメント
Jan
Jan 2017 年 9 月 17 日
Is this a homework? If so, please mention this explicitly, because then a different kind of answering is required.

サインインしてコメントする。

採用された回答

Jan
Jan 2017 年 9 月 17 日
Start with creating a matrix:
M = [A, B, C]
Then the min and max commands create the output directly.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by