A demo of using a UDP data stream from ArduPilot SITL to MALTAB https://ardupilot.org/dev/docs/MATLAB-Plotting.html
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.