How can i use a DLNetwork type Neural Network from Matlab in Simulink?
24 views (last 30 days)
Show older comments
teasy on 15 Dec 2021
Commented: teasy on 5 Jan 2022
I got a trained Neural Network in form of a DLNetwork in Matlab. For further investigations I want to use this NN in Simulink. At the moment there seems to be no oppertunity to integrate a Neural Network in type of DLNetwork in Simulink. At least I could not find any easy Solution for my Problem. So here is my question: How can I use a DLNetwork type Neural Network from Matlab in Simulink?
I want to define an input in Simulink and the NN should give me the corresponding output in Simulink.
Arkadiy Turevskiy on 15 Dec 2021
You can use Simulink blocks that ship with Deep Learning Toolbox. Please take a look at Deep Learning with Simulink section of documentation.
As of release R2021b we do not support library-free C code generation for dlnetwork, so you should be able to simulate your Simulink model with dlnetwork in it, but you would not be able to generate code from the deep learning block with your dlnetwork.
Do you need code generation or is simulation only acceptable?
More Answers (0)
Find more on Sequence and Numeric Feature Data Workflows 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!