フィルターのクリア

waitbar uifigure the message input argument cannot support the char '_'

1 回表示 (過去 30 日間)
Vico Wu
Vico Wu 2023 年 1 月 6 日
コメント済み: Vico Wu 2023 年 1 月 9 日
I want to use the waitbar uifigure to display some information,the message argument include the char '_',but it cannot display,and it can cause other adjacent char to also display exception. I want to know how to fix this problem?

採用された回答

Voss
Voss 2023 年 1 月 6 日
One way:
HdlWaitBar = waitbar(0,'Hello World A\_B\_C\_D...');
Another way:
str = 'Hello World A_B_C_D...';
str = strrep(str,'_','\_');
HdlWaitBar = waitbar(0,str);

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by