Get alternate file system roots when data source of labeled signal set is a datastore
Get Alternate Root Paths for Labeled Signal Set
labeledSignalSet to store labels for electromyographic (EMG) signals and get
alternate file paths for the underlying data source which you can use to access the
signals on a different machine. Download the files from this location:
signalDatastore to consume the signal files from the EMG data set. Modify
folder to correspond to the location where you download the files.
The data set is organized into subfolders, so enable the
folder = "C:\path\Data"; sds = signalDatastore(folder,IncludeSubfolders=true);
labeledSignalSet object with the datastore as the input
data source. To access the source data of the underlying datastore on different machines
and operating systems, use
setAlternateFileSystemRoots to set alternate file paths to the data.
folder2 with your desired root path(s). You can also set
alternate file system roots for the datastore before creating the labeled signal
lss = labeledSignalSet(sds); folder2 = "E:\path2\Data"; setAlternateFileSystemRoots(lss,[folder folder2]);
Get the current alternate file system roots in the underlying datastore of the labeled signal set to confirm that all the file paths are included.
altroots = getAlternateFileSystemRoots(lss);
altroots — Alternate file system roots
Alternate file system roots, returned as a string array.
Introduced in R2022a