https://www.mathworks.com/help/matlab/supportpkg/readbutton.html
readButton - Read whether button on EV3 brick is being pressed - MATLAB
This MATLAB function reads whether a specific button on the EV3 is being pressed, and returns the status as a logical value:
ev3 brickreadwhetherbutton
https://www.mathworks.com/help/matlab/supportpkg/connect-to-an-ev3-brick-over-wifi.html
Connect Host Computer to EV3 Brick over Wireless Network - MATLAB & Simulink
This example shows how to connect from MATLAB software to an EV3 brick using a wireless network.
host computerev3 brickwireless networkconnect
https://www.mathworks.com/help/matlab/supportpkg/legoev3.html
legoev3 - Connection to LEGO MINDSTORMS EV3 brick - MATLAB
This object represents a connection to a LEGO MINDSTORMS EV3 brick.
lego mindstorms ev3connectionbrickmatlab