Hello, I am working on NetSim and wanted to know how to connect MATLAB to NetSim. Is it that i do it offline like generate some files and then input this to MATLAB or can I do during simulation? Thank you.
Thank you Suhaib. I now understand that it can be done in run-time which is very useful.
So now suppose I want to pass some information NetSim to MATLAB, can you please tell me what function to call? And will these parameters be read by my .m file of MATLAB?
NetSim variables can easily be passed to MATLAB in the form of parameters to a function in .m file containing your MATLAB code.
Add the MATLAB_Interface.c file to the project in which your are currently working on (eg DSR).
Make calls to functions in MATLAB_Interface.c at appropriate places and set up visual studio
You can pass the parameters to the fn_netsim_matlab_run() function in the MATLAB_INTERFACING.c file from whichever file you are working on inside the current project.
MATLAB-NetSim interfacing examples are available in http://tetcos.com/File_Exchange/
From the fn_netsim_matlab_run() function you can then pass the parameters to a function in .m file containing your MATLAB code.
Yes, there is a project using SOFM (self organizing features maps) which part of the Neural Network (used for AI/ML) tool box of MATLAB. The project source code and documentation is available at http://tetcos.com/file-exchange.html