MATLAB: Help with matlab arduino question

arduino

I have a complete program on Arduino, I just want when I click a push button on a matlab gui that the program in Arduino will run, hope somebody can help me please…

Best Answer

It appears that it is possible. You need to take some steps to save the generated sketch before hand. Then you can have your GUI send the sketch to the device in order to start it running. See
I have not investigated arduino enough to know how to remotely control it to stop a sketch running afterwards.
Depending on your purposes, you might find it easier to instead have the sketch already loaded (e.g., use the tools to prepare and automatically upload it), but to have it programmed to wait for input before it proceeds with its main purpose.