Hi there 🙂
I have a small problem with this script:
function abcuicontrol('style','pushbutton','String', 'Stop','Callback',@stopf, 'position',[0 0 50 25]);ending=0;while ending==0 fprintf('\n') for k=1:2 fprintf('\b%d',k) pause(1) end fprintf('\n')endendfunction stopfending=1;end
I want to stop while loop by pressing pushbutton but it doesn't work and I have no idea how to do that.
I will be grateful for any answer or solution.
Best Answer