MATLAB: Display the ID of the participant who has the fastest response time in Experiment 1

mintables

ParticipantID Experiment1
_____________ ___________
507 0.505
505 0.665
502 0.73
501 0.885
504 0.925
509 0.965
503 1.07
I did min(Experiment1) to get the minimum value of experiement one but my answer needs to be the Participant ID of the minimum value so (507), can someone help me please!

Best Answer

>> [val,idx] = min(T.Experiment1);
>> T.ParticipantID(idx)
ans = 507