![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1646486/image.png)
How can I integrate and test a model trained with MATLAB's Classification Learner App in Simulink?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I've successfully trained a model using MATLAB's Classification Learner App and want to test its performance in a Simulink environment. I'm encountering difficulties specifically with exporting the model for compatibility with Simulink, particularly with the error related to the struct exported from Classification Learner not being supported for code generation. Could anyone guide me on how to properly export the model from Classification Learner and use it in Simulink for real-time predictions based on simulated input signals?
0 Commenti
Risposta accettata
Drew
il 19 Mar 2024
In R2024a, Classification Learner provides an "Export Model to Simulink" option in the "Export Model" menu. This is very convenient. It will export the model to Simulink, and set it up to make predictions. It makes use of native Simulink blocks for model prediction.
For more info, see the doc Classification Learner page: https://www.mathworks.com/help/stats/export-classification-model-for-use-with-new-data.html#mw_aa242d89-5727-422a-aab1-fb1946c8be4e
If this answer helps you, please remember to accept the answer.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1646486/image.png)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Classification Learner App in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!