Dot indexing is not supported for variables of this type.

조회 수: 5 (최근 30일)
lak-hal ouahid
lak-hal ouahid 2020년 8월 12일
댓글: lak-hal ouahid 2020년 8월 14일
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
Image Analyst
Image Analyst 2020년 8월 13일
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 2020년 8월 14일
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.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by