How to use a machine learning model generated with matlab classifier learner in simulink

2 views (last 30 days)
I am working on a Simulink project. I need a machine learning model to predict an output value block. So I create a KNN model using the Classification Learner app in Matlab. But I got stuck in integrating our machine learning model in Simulink. Help please!!!

Accepted Answer

Vimal Rathod
Vimal Rathod on 24 Apr 2020
As you are ready with the model made in classification learner app, you have to export the model as a MATLAB function and then integrate it in simulink using MATLAB Function block.
Refer the following link to know more about how to export the model as a matlab function and use it.
Refer the following link to know about Simulink's MATLAB function block.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!