問題
打開屬性檢查器出現了如下錯誤!
錯誤使用 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
問題得以解決! 此時可以正常打開屬性檢查器!