Generate MATLAB Code in Diagnostic Feature Designer
The Diagnostic Feature Designer app lets you work with ensemble data interactively and experiment with various processing and feature options. Once you have determined which features work best, you can generate code that reproduces your computations. This code allows you to apply the same computations to new or expanded ensemble data. You can use this code directly, or modify the code to suit your application. You can also generate streaming code that can be converted to C/C++ code using MATLAB Coder™.
|Diagnostic Feature Designer||Interactively extract, visualize, and rank features from measured or simulated data for machine diagnostics and prognostics (Since R2019a)|
|Manage ensemble data stored in the MATLAB workspace using code generated by Diagnostic Feature Designer (Since R2020a)|
|Find the workspace ensemble member indices for members that match a specified variable name and value (Since R2020a)|
|Return ensemble member data based on the member index (Since R2020a)|
|Update a workspace ensemble with partitions of modified or added data computed in parallel processing (Since R2020a)|
|Write data to a specific workspace ensemble member (Since R2020a)|
|Read all data in datastore|
|Read feature values, independent variables, and condition variables from an ensemble data set into a table (Since R2020a)|
|Extract data from an ensemble member given a path (Since R2020a)|
|Reset datastore to initial state|
|Unique values in array|
|Write data to member of an ensemble datastore|
- Automatic Feature Extraction Using Generated MATLAB Code
Diagnostic Feature Designer can generate code that reproduces your interactive computations and allows you to automate feature extraction on similar input data. You select among your features, computed variables, and ranking tables to specify what the code includes.
- Generate a MATLAB Function in Diagnostic Feature Designer
This example shows how to extract features from measurement data in the app and generate a MATLAB function that reproduces the calculations for those features.
- Apply Generated MATLAB Function to Expanded Data Set
This example shows how use a reduced data set to develop features in Diagnostic Feature Designer, generate code to automate the feature computations you select, and then use that code with the full-member data set to compute a feature set for model training.
- Export Feature Extraction Function and Simulink Model for Streaming Data
From Diagnostic Feature Designer, export feature-extraction code formatted for streaming data that is MATLAB Coder compliant and a Simulink® model that contains that code.
- Anatomy of App-Generated MATLAB Code
Explore the functional organization of MATLAB code generated in Diagnostic Feature Designer.
- Data Ensembles for Condition Monitoring and Predictive Maintenance
Algorithm design with Predictive Maintenance Toolbox™ uses data organized in ensembles. You can generate ensemble data from a Simulink model or create ensembles from existing data stored on disk.