Skip to content

load_Ve_field.m

Calvin Eiber edited this page Jun 30, 2021 · 1 revision

This function supersedes load_S4L_field, and works for either EIDORS or SIM4LIFE extracellular potential (Ve) files. Not all EIDORS features are relevant if importing from S4L files.

tools.load_Ve_field is part of package +tools

Options:

  • -f f_id, default f_id = fascicle 1
  • -stim [s_id] : select stimulus ID from file, default is stim 1.
  • -all : return fields as a cell array with one entry per s_id.
  • -pattern [list] : set stimulus pattern, overrides -sim
  • -current [list] : set current pattern matching -pattern. For instance, to specify a stimulus ganging together E1+2 with a return of E3+4, use -pat 1:4 -current [1 1 -1 -1]. Defaults to [1 -1/n] = distributed return, appropriate for bipolar / tripolar / etc patterns.`.

Known bugs and workarounds

Octave:

If you get an error calling (e.g.) VE(0,0,0):

error: griddatan: =: nonconformant arguments (op1 is 1x1, op2 is 4x1)

try calling VE() with an extra dummy value in the x,y,z vector. Seems to fix this issue.

Clone this wiki locally