Finding 3 largest values in a matrix

26 Ansichten (letzte 30 Tage)
Youssef Chehade
Youssef Chehade am 29 Mär. 2021
Kommentiert: Star Strider am 29 Mär. 2021
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?

Akzeptierte Antwort

Star Strider
Star Strider am 29 Mär. 2021
If you have R2017b or later, the maxk function will likely be useful.
  4 Kommentare
Youssef Chehade
Youssef Chehade am 29 Mär. 2021
Oh wow, thank you so much
Star Strider
Star Strider am 29 Mär. 2021
As always, my pleasure!
Matt J — Thank you for the amplification.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by