why The name 'Parent' is not an accessible property for an instance of class 'matlab.gr​aphics.Gra​phicsPlace​holder'?

16 Ansichten (letzte 30 Tage)
I try to use hgtransform like this tutorial(Create transform object - MATLAB hgtransform (mathworks.com) but my matlab doesn't run properly. It's always tell me that The name 'Parent' is not an accessible property for an instance of class 'matlab.graphics.GraphicsPlaceholder'.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 30 Nov. 2021
Put a breakpoint in at the begining of the sequence of statements where h() is assigned to, the series
h(1) = surface(x,y,z,'FaceColor','red');
h(2) = surface(x,y,-z,'FaceColor','green');
h(3) = surface(z,x,y,'FaceColor','blue');
h(4) = surface(-z,x,y,'FaceColor','cyan');
h(5) = surface(y,z,x,'FaceColor','magenta');
h(6) = surface(y,-z,x,'FaceColor','yellow');
Use the debugger to dbstep to execute one of the lines at a time. Examine the h vector afterwards. Do all of the entries in h show up as GraphicsPlaceholder ? Do some of the entries in h show up as GraphicsPlaceholder ? If so, after the h(6) assignment, which entries in h are GraphicsPlaceholder ?
What shows up for the command
which -all surface
  7 Kommentare
Walter Roberson
Walter Roberson am 1 Dez. 2021
Bearbeitet: Walter Roberson am 1 Dez. 2021
What do you get if you try the following at the command line ?
h1 = surface()
h2 = surface()
saran saenaubon
saran saenaubon am 1 Dez. 2021
now it's run properly after I change other surface name (I use h as surface name previously). Why is it that?e

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by