creating an column vector of value which is obtained from 3rd position of multiple text files

1 Ansicht (letzte 30 Tage)
I have 2500 text files in which data for eq is given. I have to obtain the 3rd highest value from each text file. For that i sort each dile in descending order. Now how will i create vector of 3rd highest element

Antworten (1)

KSSV
KSSV am 22 Mai 2019
A = rand(5) ;
B = sort(A) ;
iwant = B(3,:)

Kategorien

Mehr zu Shifting and Sorting Matrices 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