Effacer les filtres
Effacer les filtres

Omit or reduce thesize of uiprogressdlg uifigure gray background

9 vues (au cours des 30 derniers jours)
dan kin
dan kin le 23 Avr 2020
Réponse apportée : YK_Valid le 23 Août 2022
In the the uiprogressdlg help there is a nice function that creates a figure and displays an indeterminate progress bar during a singular value decomposition. Is it possible to omit or reduce the size of the uifigure gray backgound so I can see only the Computing SVD Progress Bar?
Link:
Code:
function myprogress2
f = uifigure;
d = uiprogressdlg(f,'Title','Computing SVD',...
'Indeterminate','on');
% Do the SVD computation
svd(rand(5000));
% close the dialog box
close(d);
end

Réponses (1)

YK_Valid
YK_Valid le 23 Août 2022
you can try this :
function myprogress2
f = uifigure;
f.Position = [500 500 300 75];
d = uiprogressdlg(f,'Title','Computing SVD',...
'Indeterminate','on');
% Do the SVD computation
pause(5)
% close the dialog box
close(d);
end

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by