How to call/reuse a trained neural network in simulink

5 views (last 30 days)
Hello everyone,
I would to know how to use simulink to call an already trained network model
I have tried to do this with matlab function block and s-function, but both failed
The way to call the network model using matlab script is known to me.
I hope you can give me some examples
Thanks a lot!

Answers (1)

Rushil
Rushil on 26 Mar 2025
Hello
I assume that you have trained your model using Regression Learner. Then, to export a model to Simulink, there is a workflow that you may follow, which can be found at the following documentation link: https://www.mathworks.com/help/stats/export-regression-model-to-predict-new-data.html#mw_55e40800-fbf1-4972-ab41-3c65aaf844c6 . Following the steps provided in the documentation may help you accomplish your task at hand.
Please note that Linear Regression and Kernel Approximation Regression models may not be exported to Simulink using the aforementioned steps.
Hope it helps you out.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!