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

1 view (last 30 days)
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

Answers (1)

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

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!