Skip to content

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

@Hororohoruru

Description

@Hororohoruru

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions