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

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

Accepted Answer

Stephen23
Stephen23 on 3 Feb 2019
>> [val,idx] = min(T.Experiment1);
>> T.ParticipantID(idx)
ans = 507

More Answers (0)

Categories

Find more on Time Series 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!