what is the equivalent for " 'Interpreter', 'none' " in the 'waitbar' framework?

1 回表示 (過去 30 日間)
mat
mat 2013 年 6 月 10 日
回答済み: TED MOSBY 2025 年 7 月 3 日
hi
what is the equivalent for " 'Interpreter', 'none' " in the 'waitbar' framework?
thanks alot,
matty

回答 (1 件)

TED MOSBY
TED MOSBY 2025 年 7 月 3 日
Hi,
waitbar itself doesn’t accept an 'Interpreter' name-value pair. Instead, create the bar, grab the text object MATLAB puts inside it, and set that object’s Interpreter to 'none'.
% Create the bar (R2014b or newer)
wb = waitbar(0,'My_waitbar_string_with_underscores');
wb.Children.Title.Interpreter = 'none';
If the bar has extra children (for example when you add a Cancel button) you may need to address the correct child explicitly:
wb.Children(2).Title.Interpreter = 'none'; % when a Cancel button exists
Another way to do is:
set(findall(wb,'Type','text'),'Interpreter','none');
Hope this helps!

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by