Use a neural network generated by Matlab in C ++

I created a network with matlab. I can see the result of this network for my Matlab entries with this command: sim (net, 0.01)

I want to do this job in C ++ using "net" created using matlab. How can i do this?

+4
source share
1 answer

ITNOA

if you can create a Simulink network model, then you can export your network to c-language (for example, http://compgroups.net/comp.soft-sys.matlab/exporting-neural-network-to-c++/408091 ) , it's simple. but I don’t think this method will be good for using a neural network for other programs, for me the best solution is to use a neural network formula (for example, try to simulate a neural network in Matlab myself ) and use network weights that are exported from the trained network to Matlab will be used in your program because it is easy and clean.

+1
source

Source: https://habr.com/ru/post/1415612/


All Articles