NetSim (v9 or higher) can be interfaced with MATLAB version R2016 or higher. Inorder to interface NetSim and MATLAB, both the tools should be of either 32 bit or 64 bit.
Note:
1. MATLAB has stopped 32 bit releases starting from version R2016.
2. MATLAB interfacing is possible only in the Pro / Standard version 9 (or higher) of NetSim.
3. MATLAB interfacing is not possible with NetSim Academic version.
Useful references:
can-you-give-a-general-idea-of-how-to-interface-netsim-with-matlab-
how-do-i-interface-netsim-with-simulink-can-you-give-an-example-