Finding 3 largest values in a matrix

27 ビュー (過去 30 日間)
Youssef Chehade
Youssef Chehade 2021 年 3 月 29 日
コメント済み: Star Strider 2021 年 3 月 29 日
Consider I have a large matrix (say 24*30), is there a way to find the three largest values?
I know that we can find the biggest value using this command:
max(A, [], 'all')
But is there another way around this?

採用された回答

Star Strider
Star Strider 2021 年 3 月 29 日
If you have R2017b or later, the maxk function will likely be useful.
  4 件のコメント
Youssef Chehade
Youssef Chehade 2021 年 3 月 29 日
Oh wow, thank you so much
Star Strider
Star Strider 2021 年 3 月 29 日
As always, my pleasure!
Matt J — Thank you for the amplification.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by