Skip to content

ndi.setup.conv.marder.presetup

  PRESETUP - set up the Marder lab directory based on the directory name

  S = PRESETUP(DIRNAME, N, Name, Value, ...)

  Sets up a Marderlab directory for import using NDI methods.

  Inputs:
    DIRNAME - The full path to the directory to be set up. Must be a valid folder.
    N - An integer identifier (e.g., experiment number), must be >= 1.

  Optional Name-Value Pair Arguments:
    makeSubjects (logical) - If true, creates subject entries based on N.
                             Defaults to false.
    makeProbeTable (logical) - If true, generates the probeTable.csv file from
                               .abf files and opens it for editing.
                               Defaults to true.

  Outputs:
    S - The NDI session object for the created/configured directory.

  Example:
    % Basic setup, creates probe table by default
    S = presetup('/path/to/my/experiment', 1);

    % Setup without creating probe table
    S = presetup('/path/to/my/experiment', 2, 'makeProbeTable', false);

    % Setup and create subject entries
    S = presetup('/path/to/my/experiment', 3, 'makeSubjects', true);