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

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

Risposta accettata

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

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by