https://www.mathworks.com/help/matlab/import_export/resolve-serial-port-connection-errors.html
Resolve Serial Port Connection Errors - MATLAB & Simulink
Troubleshoot connecting to a serial port device.
serial port connectionresolveerrorsmatlabsimulink