waitbar uifigure the message input argument cannot support the char '_'
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1254147/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1254152/image.png)
0 commentaires
Réponse acceptée
Voss
le 6 Jan 2023
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);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dialog Boxes dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!