I have a GUI MATLAB
I have a button
and there is a loop like this
function RUN()t=1:0.01:3600;for i=1:numel(t) y(1,i)=readValue(); plot(t(1:i),Tco(1:i)); pause(0.02)endend
function BUTTON_PRESS() %BREAK FROM THAT LOOPend
I want to break this loop when I click my button
Best Answer