Not able to open property inspector

조회 수: 5 (최근 30일)
PIYUSH MOHANTY
PIYUSH MOHANTY 2019년 9월 30일
답변: Shubh Sahu 2019년 12월 9일
Whenever I am trying edit a plot in Figure window through property inspector, the property inspector window does not open and has the following error in command window:
Unable to use a value of type string as an index.
Error in internal.matlab.datatoolsservices.WidgetRegistry/registerWidgets (line 406)
this.Map(key) = this.createWidgetStruct(editor, inPlaceEditor, renderer, converter);
Error in internal.matlab.legacyvariableeditor.peer.PeerManager/openvar (line 544)
w.registerWidgets('internal.matlab.legacyvariableeditor.peer.PeerTableViewModel','',
'variableeditor/views/TableArrayView','','');
Error in internal.matlab.inspector.Inspector/inspect (line 219)
varDocument = openvar(this, DataModel.Name, ...
Error in internal.matlab.inspector.peer.PeerInspectorManager/inspect (line 283)
peerInspectorDocument = this.inspect@internal.matlab.inspector.Inspector(objs, ...
Error in matlab.graphics.internal.propertyinspector.PropertyInspectorManager/inspectObj (line 561)
inspectorDocument = inspectorDocumentModel.inspect(obj,...
Error in matlab.graphics.internal.propertyinspector.PropertyInspectorManager/showInspector (line 351)
this.inspectObj(objToInspect);
Error in matlab.graphics.internal.propertyinspector.propertyinspector (line 111)
hInspectorMgnr.showInspector(hObjs);
Error in matlab.graphics.internal.propertyinspector.propertyinspector (line 19)
matlab.graphics.internal.propertyinspector.propertyinspector('show');
Error in viewmenufcn (line 52)
matlab.graphics.internal.propertyinspector.propertyinspector('toggle');
Error while evaluating Menu Callback.
  댓글 수: 2
Shubh Sahu
Shubh Sahu 2019년 12월 5일
Hey!
I'm not able to reproduce this problem. Can you please try this commands one by one and note the results.
>> w = internal.matlab.datatoolsservices.WidgetRegistry.getInstance();
>> w.registerWidgets('internal.matlab.legacyvariableeditor.peer.PeerTableViewModel','', 'variableeditor/views/TableArrayView','','');
and after this please try this one
>> val = w.createWidgetStruct('variableeditor/views/TableArrayView','','','')
Next, try this:
c = containers.Map;
c("internal.matlab.legacyvariableeditor.peer.PeerTableViewModel///") = val
And send us the output. I'm guessing some of these commands will fail.
Thanks,
Shubh
Walter Roberson
Walter Roberson 2019년 12월 5일
Do you happen to be using MacOS Catalina?

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

답변 (1개)

Shubh Sahu
Shubh Sahu 2019년 12월 9일
We are unable to reproduce your problem and I believe it might be installation issue so please reinstall MATLAB.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by