how to use the parameters of neural network in simulink?
111 views (last 30 days)
Show older comments
I trained a neural network dpending on two inputs (T and p) to predect density.
Now I have the best parameters to predect density using this code:
density = model (parameters, p, T);
Plese note that I have a simulink model with the time-step is 0.001 s, the problem is how to use this parameters of the NN in the Simulink model.
input are: p and T
output is: density
time-step is 0.001
Best regards, Ahmad
3 Comments
Answers (1)
Sam Chak
on 7 Jul 2024 at 6:55
If you want to implement a trained neural network in Simulink to predict the Desity based on two inputs (p, T), then use the Predict block.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1729156/image.png)
12 Comments
Sam Chak
on 8 Jul 2024 at 9:35
Hi Ahmad,
Thanks for your update. This error message is strange because the fullyconnect() function is supported in the MATLAB Function block according to the list below. Will need some time to figure this out.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1729811/image.png)
See Also
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!