I have a Appdesigner 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(