I have the following data structure (stored as CSV):
Sub Cond Pic Vals
s101 A pic1 [1,3,5,1,-2,5]
s101 A pic2 [1,-2,5,0,2,1]
s101 B pic1 [2,4,7,0,1,-3]
s101 B pic2 [3,-1,1,1,6,1]
s102 A pic1 [1,7,7,3,-1,5]
s102 A pic2 [2,8,7,0,3,-4]
…etc
I want to loop through subjects and conditions to correlate the value vectors between pic1 and pic2.
In python, I’d organize these as a list of dictionaries, but I’m not sure what the analogous/optimal structure is in MATLAB. What is the best way to import and organize these data in MATLAB?
For instance, you can do something like that:
xp.txt:
matlab script:
result:
PS:
There are also many other possibilities depending on what you want