Why do I see the error "readonly Error: Unexpected MATLAB expression. workspacefunc 287" when clicking "Edit" and trying to copy a figure?
1 回表示 (過去 30 日間)
古いコメントを表示
When I click the "Edit" in the Tools bar of a figure dialog, the following Error pops out and I can not copy the figure. What's the problem? How to solve it? Thank you very much!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149803/image.png)
0 件のコメント
採用された回答
Dan Nguyen
2015 年 5 月 6 日
編集済み: Dan Nguyen
2015 年 5 月 6 日
Hi Nan,
Are you using CERR by chance? I had this exact problem when I switched to 2015a and it turned out that MATLAB and CERR both have a function named 'strsplit.m'. MATLAB is unknowingly calling on CERR's version instead.
I fixed this by renaming CERR's strsplit to something else.
If you're not using CERR, check if you have any outside functions using these names:
builtin
strjoin
strsplit
MATLAB has its own internal functions using these. Any outside functions with the same name would cause the error you see.
Hope that helps.
Dan
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!