All Matlab and Simulink functions rely on the TCP/UDP/IP Toolbox 2.0.6.
A modified version of the toolbox is provided in the ArduPilot repository.
The toolbox is compiled into a MEX file allowing for fast connection speeds,
also removing the need for a licence for the official TCP/UDP tools. Pre-built MEX files are provided for Windows and Linux however it may be necessary
to compile locally. The basic MATLAB Simulation copter
example will try to do this if no MEX file is found. This should be run before trying the other examples.