Can't open property inspector

조회 수: 26 (최근 30일)
Erik Weiss
Erik Weiss 2021년 6월 4일
댓글: Erik Weiss 2021년 6월 11일
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
Scott MacKenzie
Scott MacKenzie 2021년 6월 4일
Can' you just click on the Property Inspector button in the figure window?
Erik Weiss
Erik Weiss 2021년 6월 4일
Yes I can, but the same thing happens (I get the error message and all). The window actually pops up, but I can't really do anything with it. I can click on the upper most menu (showing the figure number and the title, it only shows me figure 1), but below that is unclickable anywhere and it has a loading wheel with black spokes in the middle of it. Sorry, this interface isn't letting me paste a screenshot from the clipboard.

댓글을 달려면 로그인하십시오.

답변 (1개)

Chidvi Modala
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
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.
Erik Weiss
Erik Weiss 2021년 6월 11일
Hmmm, so to the best of my knowledge, the default path in mathlab is found by typing 'userpath', which tells me my directory is "C:\Users\Erik\Documents\MATLAB" -- I only have a one-line startup.m file in there and 3 sub-folders. Either way, it looks like I'd have to reproduce the problem to go further. I had closed down the workspace I was in when I had this problem and it looks like the property inspector is functioning as normal for a simple plot like "plot(1:10,1:10)", so I'm guessing it had something to do specifically with the plots I was working with. Ah well.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by