Can't open any script or function
2 次查看(过去 30 天)
显示 更早的评论
I've made some scripts and functions, and they all worked fine. Now I want to re-open them and everytime I get the same error:
for colon operator with char operands first and last operands must be char.
This error shows up when opening any script or function. I've no idea what's wrong
0 个评论
回答(1 个)
the cyclist
2015-11-23
My best guess is that before, you had some variables open in your workspace, that perhaps were numeric variables. Now, you either don't have those variables defined, or they are not numeric now.
Can you please add a little more detail? When you say "made some scripts ...", do you mean you have edited and saved a *.m file, and ran it from the command line?
When you say "re-open" them, what do you mean?
Could you add one example of such a function here?
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!