Matlab打开属性检查器出错问题
问题
打开属性检查器出现了如下错误!
错误使用 event.listener
参数 'source' 必须为句柄元胞数组。
出错 matlab.graphics.internal.propertyinspector.PropertyInspectorManager/inspectObj (第 585 行)
this.PropertyChangedListener = event.listener(inspectorDocument.ViewModel,
'DataChange', ...
出错 matlab.graphics.internal.propertyinspector.PropertyInspectorManager/showInspector (第 354 行)
this.inspectObj(objToInspect);
出错 matlab.graphics.internal.propertyinspector.propertyinspector (第 111 行)
hInspectorMgnr.showInspector(hObjs);
出错 matlab.graphics.internal.propertyinspector.propertyinspector (第 18 行)
matlab.graphics.internal.propertyinspector.propertyinspector('show');
出错 viewmenufcn (第 52 行)
matlab.graphics.internal.propertyinspector.propertyinspector('toggle');
计算 Menu Callback 时出错。
解决方法
在命令行窗口输入以下三个命令:
restoredefaultpath
rehash toolboxcache
savepath
问题得以解决! 此时可以正常打开属性检查器!