Dot indexing is not supported for variables of this type.

1 Ansicht (letzte 30 Tage)
lak-hal ouahid
lak-hal ouahid am 12 Aug. 2020
Kommentiert: lak-hal ouahid am 14 Aug. 2020
Hello Matlab Community,
I was working on making scenarios using drivingScenario class and its methods, but i encounter some errors using, the plot function used for Creating a new scenario plot.
a test a simple code :
s = drivingScenario();
car = vehicle(s, 'ClassID', 1);
chasePlot(car);
the log of the command is this :
Dot indexing is not supported for variables of this type.
Error in matlab.ui.internal.JavaMigrationTools>suppressWarning (line 101)
if s.matlab.ui.internal.ForceJavaMigrationWarnings.ActiveValue
Error in matlab.ui.internal.JavaMigrationTools.suppressedJavaFrame (line 29)
cleanupObj =
suppressWarning('MATLAB:ui:javaframe:PropertyToBeRemoved');
Error in matlab.uitools.internal.uimode/createuimode (line 35)
hFrame =
handle(matlab.ui.internal.JavaMigrationTools.suppressedJavaFrame(hFig));
Error in uimode (line 111)
hMode.createuimode(handle(hObj),name);
Error in zoom>locGetMode (line 556)
hMode = uimode(hFig,'Exploration.Zoom');
Error in zoom (line 297)
hMode = locGetMode(hFigure);
Error in driving.scenario.Plot/setupGraphics (line 204)
z = zoom(hAxes);
Error in driving.scenario.Plot (line 46)
setupGraphics(obj);
Error in drivingScenario/plot (line 69)
p = driving.scenario.Plot(varargin{:}, ...
Error in driving.scenario.Actor/chasePlot (line 121)
plot(obj.Scenario, ...
  15 Kommentare
Image Analyst
Image Analyst am 13 Aug. 2020
lak-hal, why are you not answering my question, or Adam's? Again, do this and tell us what you see about obj - not other variables that we don't care about:
obj
whos obj
methods(obj)
properties(obj)
fieldnames(obj)
Since your error is on this line:
plot(obj.Scenario, ...
it's obj that we need to learn about, not s, not car, not anything else (yet). Just because you are "learning the hard way" does not mean we want to help you the hard way. Make it easy for us to help you, not hard.
"An expert is one who knows more and more about less and less until he knows absolutely everything about nothing." Nicholas Butler, President of Columbia University.
lak-hal ouahid
lak-hal ouahid am 14 Aug. 2020
Thank you, Guys, And All the Community.
I truly apologize Image Analyst for not responding, because the problem was, that matlab did not know which function to use, because, I wrote some functions that i defined to interact with scenerio class, actors, ... and it was a bad code.
Next time, I be happy to read the 'How to Ask Question In Matlab' before asking, but before, i will debug my code first.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by