Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Compare between matrices to find the max

1 回表示 (過去 30 日間)
Antonio Faggio
Antonio Faggio 2018 年 2 月 21 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello there! I have a problem with my matlab program. I should compare a lot of matrices and choose for every position i,j the max and create a new matrix with this max. Have you some ideas to do this? Thanks to everyone

回答 (1 件)

Bhuvnesh Singh
Bhuvnesh Singh 2018 年 2 月 28 日
In order to achieve this you can use max function.
If you have two matrices A and B
M = max(A,B)

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by