How to simulate a neural network in Simulink?

25 次查看(过去 30 天)
Hello guys. I have a neural network (ANN) that I trained. I can simulate it just fine by using the following command in a MATLAB script:
outputs = sim(ANN,inputs)
But when using a MATLAB a function inside a Simulink module, using the same command, I get an error which I believe is because sim cannot be used inside a Simulink module. Is there any other way to simulate ANN (my neural network).

采纳的回答

Ali Almakhmari
Ali Almakhmari 2023-6-18
For anyone wondering in the future how to do this, the gensim command is your answer: https://www.mathworks.com/help/deeplearning/ref/network.gensim.html

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by