MATLAB: Undefined function or variable ‘helperReadData’

MATLABtoolbox

Hello, I'm using R2018b and following an example on Wind Turbine High Speed Bearing at https://www.mathworks.com/help/predmaint/examples/wind-turbine-high-speed-bearing-prognosis.html. When i call the method helperReadData, i have this error:

Best Answer

The function is part of the Predictive Toolbox product, and is stored at
fullfile(matlabroot,'examples', 'predmaint', 'main', 'helperReadData.m')
When you use
openExample('predmaint/WindTurbineHighSpeedBearingPrognosisExample')
then it will be copied into a folder for use by the example. The folder will be created under your documents MATLAB directory. On Mac, for me that is under /Users/roberson/Documents/MATLAB . You can see the directory that will be used by executing
disp(system_dependent('getuserworkfolder', 'default'))