'String scalar or character vector must have valid interpreter syntax' in waitbar
显示 更早的评论
I am creating a waitbar where the text includes the path to the file being processed. The path name, ovbiously includes a backslash ('\') character, and this is causing the warning message to be issued: 'string scalar or character vector must have valid interpreter syntax'.
I could write a function to replace every ocurrence of the '\' character with '\\', but is there a way to set the interpreter to 'none' when calling the waitbar function?
采纳的回答
更多回答(1 个)
Fangjun Jiang
2023-3-30
0 个投票
What is the issue? I don't have any error message in R2022b.
h=waitbar(0.5,'c:\abc\xyz')
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!