Hi Jules,
MATLAB has support packages for Arduino boards, by extension it means that it has suport for ESP32 boards. In order to work with Arduino boards, you will need to install the support package mentioned in the link below.
There are some examples in the links given below to work with ESP32 in MATLAB which will help you get started with ESP32 boards.