フィルターのクリア

Is it possible to change the color of the " waitbar" in the GUI? i mean the red colored thing moving inside the wait bar ? if yes how?

12 ビュー (過去 30 日間)
please help.

採用された回答

Geoff Hayes
Geoff Hayes 2015 年 2 月 8 日
% create the wait bar
h = waitbar(0,'Please wait...');
% find the patch object
hPatch = findobj(h,'Type','Patch');
% change the edge and face to blue
set(hPatch,'FaceColor',[0 0 1], 'EdgeColor',[0 0 1]);
% run the wait bar
steps = 1000;
for step = 1:steps
% computations take place here
waitbar(step / steps)
end
close(h)
When you execute the above, the bar will now be blue rather than the default red. Try it and see what happens!
  3 件のコメント
Booker
Booker 2016 年 9 月 30 日
This solution does not work for 2015a.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by