waitbar uifigure the message input argument cannot support the char '_'
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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 Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!