I have a filename that is something like
I need to extract different parts of this filename and use them to determine which path for a looping if statement to take.
I need it to load the file determine that file = Exp000_DD2CM000_PN000_block1_predecision experimentName = DD2CM000 participantName = PN000 block= 1 type = pre or post
if type = pre
elseif type = post
right now I'm using
>> experimentName =regexp(str,'DD2CM(/d*)','match')
without any luck.