The current MATLAB Support Package for Arduino Hardware can control board I/O and supported peripherals directly from MATLAB with the supported servo…