I have generated a network with MATLAB. I can see the result of this network for my inputs in MATLAB via this command:
sim(net, 0.01)
I want to do this work in C++ with the "net" generated by MATLAB. How can I do this?
I have generated a network with MATLAB. I can see the result of this network for my inputs in MATLAB via this command:
sim(net, 0.01)
I want to do this work in C++ with the "net" generated by MATLAB. How can I do this?
If you can generate a Simulink model of the network then you can export your network to the C language (like Exporting Neural Network to C++), it's simple. But I do not think this method will be good to use a neural network for other programs.
To me the better solution is to use of the neural network formula (like in Try to simulate a neural network in MATLAB by myself) and use of weights of network that exports from trained network in MATLAB be used in your own program, because it's easy and clean.