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

1 visualizzazione (ultimi 30 giorni)
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

Risposte (1)

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

Categorie

Scopri di più su Shifting and Sorting Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by