Industrial Machinery Anomaly Detection, Part02_Modeling.mlx: extractLabeledData

2 views (last 30 days)
hi all,
within "Industrial Machinery Anomaly Detection", livescript 'Part02_Modeling.mlx"
line8 is : X = extractLabeledData(featureTrain, "Label", "After");
when i try to run this line, matlab returns 'unrecognized function or variable extractLabeledData'
=> extractLabeledData seems not to be known by matlab help and is neither a variable.
am I missing something, how to overcome this issue ?
best regards
Juliette

Accepted Answer

David Willingham
David Willingham on 29 Sep 2021
Hi Juliette,
You'll need to open the MATLAB project first and it will setup the path for the example.
To Run:
  1. Open the MATLAB Project AnomalyDetection.prj
  2. Run Part 1 - Data Preparation & Feature Extraction
  3. Run Part 2 - Modeling
David
  5 Comments
David Willingham
David Willingham on 3 Oct 2021
Hi Juliette, the file extractLabeledData is in the HelperFunctions subfolder. If you're receiving the error, it means the path wasn't setup correctly.
After opening the AnomalyDetection.prj, what is the output of:
>> which -all extractLabeledData
juliette soula
juliette soula on 8 Oct 2021
Hi David,here is the result:
>>which -all extractLabeledData
'extractLabeledData' not found.
You're right "extractLabeledData.m" is "hidden" in the HelperFunctions subfolder.
I've copied the file to the level of Part02_Modeling.mlx file to have it work

Sign in to comment.

More Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!