How to simulate a neural network in Simulink?

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).

 Respuesta aceptada

Ali Almakhmari
Ali Almakhmari el 18 de Jun. de 2023

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2022b

Preguntada:

el 16 de Jun. de 2023

Respondida:

el 18 de Jun. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by