Where can I find the extractFSSTFeatures helper function in Waveform Segmentation using Deep Learning?

2 views (last 30 days)
Hello everyone, I'm trying to implement the code provided in the Waveform Segmentation Using Deep Learning, but I can't seem to find the extractFSSTFeatures helper function used in the last step of the documentation. Can anyone help me?
"Calculate the FSST of each signal in the training dataset over the frequency range of interest, [0.5, 40] Hz. Treat the real and imaginary parts of the FSST as separate features and feed both components into the network. Furthermore, standardize the training features by subtracting the mean and dividing by the standard deviation. Use a transformed datastore, the extractFSSTFeatures helper function, and the tall function to process the data in parallel."
fsstTrainDs = transform(trainDs,@(x)extractFSSTFeatures(x,250));
fsstTallTrainSet = tall(fsstTrainDs);
fsstTrainData = gather(fsstTallTrainSet);

Accepted Answer

Steven Lord
Steven Lord on 25 Jan 2024
Open the example in either MATLAB Online or in your desktop MATLAB session using one of the buttons provided on the example's page. When you do, MATLAB will make the example's directory the current directory. The helper function is in the example's directory, so once it is the current directory the helper function will be accessible to MATLAB.

More Answers (1)

Cris LaPierre
Cris LaPierre on 25 Jan 2024
Use the Copy Command button to obtain the code necessary to open the example in your local version of MATLAB. This will download the necessary files to run the example on your computer. One of the files downloaded will be the helper function.
openExample('deeplearning_shared/WaveformSegmentationUsingDeepLearningExample')

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!