Omit or reduce thesize of uiprogressdlg uifigure gray background

13 次查看(过去 30 天)
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

回答(1 个)

YK_Valid
YK_Valid 2022-8-23
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

类别

Help CenterFile Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by