LabKit MATLAB Workbench

reference

API ReferenceIntan RHS Recordings

labkit.rhs.findFiles

Find Intan RHS files in a folder and its subfolders.

Syntax

filepaths = labkit.rhs.findFiles(rootDir)

Description

Recursively collects files whose extension is .rhs and sorts their full paths for reproducible batch order. The function does not inspect file headers; use inspectFile when the contents must be validated.

Inputs

rootDir
Character vector or string scalar naming an existing folder.

Outputs

filepaths
Cell column vector of sorted full paths. The value is an empty cell array when no RHS files are found.

Errors

Throws labkit:rhs:InvalidFolder when rootDir is not a text scalar or does not name an existing folder.

Typical Call

files = labkit.rhs.findFiles("recordings");
[info, status] = labkit.rhs.inspectFile(files{1});

Source

This page is generated from the MATLAB help text in +labkit/+rhs/findFiles.m.