Error using Variable Editor 2012a

3 ビュー (過去 30 日間)
kevin
kevin 2014 年 4 月 7 日
回答済み: Pieter VL 2014 年 10 月 1 日
This has worked fine in the past but today if I open a variable from the workspace to the variable editor I receive "an unexpected error has occurred" rather than the values of the variable. It appears to happen after I change my current directory. So at startup in the C:\users\Documents\Matlab, I can do A=1 in the command window and then open A from the Workspace and see "1" in the variable editor. If I switch to a different directory (same ones I have used for months) I get the error. I have seen this question asked before but no one has answered yet.

採用された回答

Jan
Jan 2014 年 4 月 7 日
Which M-files and DLLs are contained in this folder? It seems like one of these files conflicts with the method used for the workspace browser.
  1 件のコメント
kevin
kevin 2014 年 4 月 8 日
編集済み: kevin 2014 年 4 月 8 日
There are various m files in these folders. The same ones that have been there and no problems have been seen in the past. Edited- This was not quite true this folder contained an m file that appeared to conflict with the variable editor. Renaming/removing this file solved the problem. Thanks!

サインインしてコメントする。

その他の回答 (1 件)

Pieter VL
Pieter VL 2014 年 10 月 1 日
I had the same issue. Although I did not find the root of the problem, the following worked for me. Reset your matlab path to the default values & add those locations that you need again. Afterwards, the conflict with the openvar() function (performing the actual functionality of the variable editor) was no longer there.

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by