I have a main function in MATLAB which consists of a while(1)
loop. Also, I have subscribed to a ros image_raw topic which updates a callback function in MATLAB.
Whenever I press CTRL+C, I should hold it for a long time to work. I have tried onCleanUp
but it is not working, either.
How can I quickly stop the program when running?
Setup: Windows10, MATLAB 2017b