Azzera filtri
Azzera filtri

how to keep waitbar on the application

2 visualizzazioni (ultimi 30 giorni)
Gali Musa
Gali Musa il 17 Feb 2019
Modificato: Gali Musa il 17 Feb 2019
i tried to use waitbar in an apllication and want it to be built up in the application not seperate. Thank you
f = waitbar(0,'1','Name','Optmization Process...',...
'CreateCancelBtn','setappdata(gcbf,''canceling'',1)');
setappdata(f,'canceling',0);
steps = gen;
for step = 1:0.01:steps
% Check for clicked Cancel button
if getappdata(f,'canceling')
break
end
% Update waitbar and message
waitbar(step/steps,f,sprintf('%12.1f',step))
end
delete(f)
  1 Commento
Geoff Hayes
Geoff Hayes il 17 Feb 2019
Gali - are you using App Designer to integrate the waitbar? It is difficult to read the code that you have posted above so it would be preferrable if you could copy and paste the code to this question.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Dialog Boxes in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by