How to do max value

Hi, can you help me ? I have y1, y2, y3, y4 and y5. All of them are 2x70 double. And I need to find max y from them.

3 件のコメント

Kaushik Lakshminarasimhan
Kaushik Lakshminarasimhan 2017 年 11 月 8 日
You have five matrices. Can you clarify what you mean by max y? Do you want to find the maximum element in each of the five matrices?
OCDER
OCDER 2017 年 11 月 8 日
To add on, do you want to find the maximum per row or col or overall?
A = [1 2; 3 4];
max(A, 1) % 3,4
max(A, 2) % 2;4
max(A(:)) % 4
Stephen23
Stephen23 2017 年 11 月 10 日
Adriana Stanková's "Answer" moved here:
Thank for your answers. Overall. I need to find y, which has the highest values than other y. Answer have to be matrice, one from y1, y2, y3, y4 and y5.

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2017 年 11 月 8 日

0 投票

Y = [y1;y2;y3;y4;y5];
out = max(Y(:));

この質問は閉じられています。

タグ

質問済み:

2017 年 11 月 8 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by