https://la.mathworks.com/help/matlab/hardware-network-comm.html?s_tid=CRUX_lftnav
Hardware and Network Communication - MATLAB & Simulink
Connect to hardware, such as serial port devices, Arduino boards, and webcams
hardware and networkcommunicationmatlabsimulink