Filter löschen
Filter löschen

Grouping sessions by participant number

1 Ansicht (letzte 30 Tage)
Shannon McNee
Shannon McNee am 29 Jun. 2017
Beantwortet: Image Analyst am 30 Jun. 2017
Hi there,
I have a 84x1 vector which contains 84 unique session numbers for an experiment. Each session is associated with a specific participant. Each session contains 4 blocks of 50 trials. I have a 8x1 vector of unique participant numbers. Each participant should complete 12 sessions (with the exception of a few who didn't complete the full experiment).
My question is, how do I associate specific session numbers with specific subject numbers so that I can plot a single subject's distribution of responses per each individual session?
Thank you in advance for any help.
  1 Kommentar
dpb
dpb am 30 Jun. 2017
Show us a small representative data set...it's so much easier to parse a description if there's an example to go along with it... :) Clearly doesn't need to be all 84 nor the blocks nearly so large; algorithms aren't dependent on size, just the relationships.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 30 Jun. 2017
Why can't you just make up a 2-D array with 84 rows and 202 columns. First column is the session number, second column is the participant ID number, and columns 2 - 202 are the 200 numbers in 4 blocks of 50. I.e, cols 3 - 52 contain block 1, cols 52 - 102 are block 2, cols 103 - 152 are block 3, and the last 50 columns are block 4.

Weitere Antworten (0)

Kategorien

Mehr zu Model, Block, and Port Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by