Can't open property inspector
26 次查看(过去 30 天)
显示 更早的评论
I've got two figures up in the pane and want to use the property inspector to play with the legend, etc. When I click on the legend or something that would make it pop up, I get a "ding" sound indicating an error, and the command line outputs the message below. I don't know enough to look into the code myself to figure this out, so whatever help can be offered is appreciated.
Thanks,
Erik
Error using isempty
Too many input arguments.
Error in matlab.graphics.internal.propertyinspector.PropertyInspectorManager/inspectObj (line 554)
if ~isempty(inspectorDocumentModel.Documents) && ~isempty(inspectorDocumentModel.Documents.ViewModel)
Error in matlab.graphics.internal.propertyinspector.PropertyInspectorManager/showInspector (line 354)
this.inspectObj(objToInspect);
Error in matlab.graphics.internal.propertyinspector.propertyinspector (line 112)
hInspectorMgnr.showInspector(hObjs);
Error in matlab.graphics.internal.propertyinspector.propertyinspector (line 18)
matlab.graphics.internal.propertyinspector.propertyinspector('show');
Error in viewmenufcn (line 52)
matlab.graphics.internal.propertyinspector.propertyinspector('toggle');
Error while evaluating Menu Callback.
2 个评论
回答(1 个)
Chidvi Modala
2021-6-7
A possible cause for this error could be, if a prior file(for example a FileExchange download) was "shadowing" a function that was called when opening the Property Inspector.
- You can perform the following
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
- If the error still occurs, the shadowing file might be in default path, you might need to rename or delete that file
3 个评论
Chidvi Modala
2021-6-11
Shadowing file as in, there might be a file created by you with a name same as that of an inbuilt MATLAB function name. If that is the case, then when you click on Property Inspector, MATLAB might be calling an inbuilt function. Instead of executing this inbuilt function, it might be executing the function with the same name located in your MATLAB path.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!