VPNL / fLoc

Functional localizer experiment used to define category-selective cortical regions
20 stars 18 forks source link

Index excess array bounds due to attribute returning empty array #2

Open Hororohoruru opened 5 years ago

Hororohoruru commented 5 years ago

Hello, I am trying to run the experiment using Matlab2018b. When running the function runme.m, I get the following error:

Index in position 2 exceeds array bounds.

Error in fLocSession/run_exp (line 138)
            stim_names = session.sequence.stim_names(:, run_num);

Error in runme (line 85)
    session = run_exp(session, rr);

I had a look at the code, and the sequence attribute of session appears to be an fLocSequence object, so I tried creating one in the console to check the stim_names attribute, Here is what I got:

>> x = fLocSequence

x =

  fLocSequence with properties:

           num_runs: 4
        stim_onsets: []
         stim_names: []
        task_probes: []
         stim_conds: {'Bodies'  'Characters'  'Faces'  'Objects'  'Places'}
     stim_per_block: 12
    stim_duty_cycle: 0.5000
          task_name: 'oddball'
            run_dur: 228
           stim_dur: 0.5000
            isi_dur: 0

Any ideas of what may be causing this problem? Thank you very much!

aarezai commented 5 years ago

Hello! My name is Alex Rezai and I am the lab manager for the Grill-Spector lab. When we run this runme script, we generally use a Matlab version before 2016b. Have you tried using it on a previous version?

Hororohoruru commented 5 years ago

Hello Alex, thank you for your response. Unfortunately, I think we do not have older versions of Matlab installed in the acquisition computer. I will speak with the person in charge and come back to you after trying what you suggested.