- Install MATLAB Support Package for Arduino: This package allows MATLAB to communicate with your Arduino.
- Create a GUI in MATLAB: Utilize App Designer to create a graphical interface with buttons for each duration.
- Program Motor Control: Develop MATLAB functions that are executed when GUI buttons are pressed. These functions will control the motor's run time using the `pause(durationInSeconds)` function for timing.
- https://www.mathworks.com/hardware-support/arduino-matlab.html
- https://www.mathworks.com/products/matlab/app-designer.html