Generate a neural network with Simulink blocks

5 visualizaciones (últimos 30 días)
heof
heof el 28 de Mayo de 2012
Respondida: Snehal el 21 de Feb. de 2025
I want to generate a neural network with a Simulink block as the neurons, while the structure of the network and the weights between the neurons are determined by myself. Does anybody know how to do this?

Respuestas (1)

Snehal
Snehal el 21 de Feb. de 2025
Hello @heof,
I understand that you want to implement a neural network using blocks in Simulink such that all the involved parameters can be set by you.
You can consider using Subsystem blocks for building a neural network in Simulink, where each subsystem block represents one neuron, and the signals between them depict the connections between those neurons. Below are few suggestions on the type of Simulink blocks that you might consider using in your neural network model:
1) Within each subsystem:
  1. ‘Gain blocks: for applying weights to the input signals
  2. Sum blocks: for summing the weighted inputs and the bias
  3. Constant block: for the bias
  4. MATLAB Function block: For implementing the activation function
A single custom ‘subsystem’ created using the above-mentioned blocks will function analogous to a neuron in neural networks.
2) Alternatively, you may consider using a single ‘MATLAB function’ block instead and implement the entire logic within the corresponding function.
Although Simulink can be used to build simple neural networks using the simple blocks to implement the entire logic, its not typically recommended for large or complex networks due to the manual effort and complexity involved. For practical applications, especially those involving deep learning, using MATLAB's Toolboxes like the ‘Deep Learning Toolbox’ is more efficient.
You may refer to the following documentations for more information on Simulink blocks:
Hope this helps!

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by