加载contourf时出错

时间:2014-12-06 13:10:49

标签: matlab contourf

我最近在更新到ubuntu 14.04 64bit时遇到此错误。我无法理解发生了什么。怀疑PATH / LIBRARY等错误。尝试加载我用于MCR的程序时会发生类似情况。可能是什么问题呢?这些错误很常见,但所有这些错误同时存在,也很难找到答案。提前谢谢。

当我使用

  
    

Z =峰值(20); >> contourf(Z,10)

  

我得到了这些:

No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoUpdateColorAction (line 209) if h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoUpdateColorAction (line 209) if h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoMarkDirtyAction (line 244) if h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoModeSwitchAction (line 195) if strcmp(get(h,modeprop),'auto') && h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoModeSwitchAction (line 195) if strcmp(get(h,modeprop),'auto') && h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoUpdateColorAction (line 209) if h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoUpdateChildrenAction (line 201) if h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoModeSwitchAction (line 195) if strcmp(get(h,modeprop),'auto') && h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoModeSwitchAction (line 195) if strcmp(get(h,modeprop),'auto') && h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoModeSwitchAction (line 195) if strcmp(get(h,modeprop),'auto') && h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No appropriate method, property, or field initialized for class specgraph.contourgroup.

Error in specgraph.contourgroup/schema>LdoModeSwitchAction (line 195) if strcmp(get(h,modeprop),'auto') && h.initialized

Warning: Error occurred while evaluating listener callback. > In specgraph.contourgroup.contourgroup at 19 In contourf at 79 No public field initialized exists for class specgraph.contourgroup.

Error in specgraph.contourgroup (line 20) h.initialized = 1;

Error in contourf (line 79) h = specgraph.contourgroup('Parent', parax, 'Fill', 'on', ...

1 个答案:

答案 0 :(得分:0)

尝试使用以下方法将MATLAB恢复为默认搜索路径:

>>restoredefaultpath;
>>rehash toolboxcache;

立即尝试使用contourf。如果可行,请使用以下方法保存路径设置:

>>savepath; 

您需要自己将自定义文件夹添加回MATLAB路径,因为这会将MATLAB恢复为默认路径设置。