Finding 3 largest values in a matrix

24 次查看(过去 30 天)
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 个评论
Star Strider
Star Strider 2021-3-29
As always, my pleasure!
Matt J — Thank you for the amplification.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by