I noticed when the usb is disconnected from the board the program continues to run on the board, also if you select the disconnect option from the code menu, as expected. However once the Arduino is running independently the program does not restart if you press the Arduino reset button like it does with normal Arduino sketch uploads. Is this expected when using the Matlab Arduino connection? Is there actually uploaded code on the board that can be restarted upon reset? If so how can you do that? Thanks.
If you follow this documentation page - https://www.mathworks.com/help/supportpkg/arduino/ug/run-model-on-arduino-hardware.html, you should be able to restart the model by just pressing on the reset button.