Not able to open property inspector

6 ビュー (過去 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 Center および File ExchangeInteractive 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