Data type of UIAxes change in R2022a?

1 Ansicht (letzte 30 Tage)
Jayanth Suresh
Jayanth Suresh am 12 Mai 2022
Kommentiert: Jayanth Suresh am 13 Mai 2022
Hi,
I was using a MATLAB app between two versions (R2020a and R2022a) and noticed the data type of uiaxes to be different between the two versions.
When I try to create a uiaxes and check the axis type using isa I am getting two different results.
In R2020a,
tmpAxes = uiaxes; % declare uiaxes
isa(tmpAxes, 'matlab.graphics.axis.Axes') % check against `axes` data type
% output is FALSE
In R2022a,
tmpAxes = uiaxes; % declare uiaxes
isa(tmpAxes, 'matlab.graphics.axis.Axes') % check against `axes` data type
% output is TRUE
Any possible reason this might be happening? Thanks in advance.
  1 Kommentar
Geoff Hayes
Geoff Hayes am 13 Mai 2022
@Jayanth Suresh - I see the same behaviour with 2021a
>> tmpAxes = uiaxes; % declare uiaxes
isa(tmpAxes, 'matlab.graphics.axis.Axes') % check against `axes` data type
ans =
logical
so perhaps this change was introduced in 2020b or 2021a.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Steven Lord
Steven Lord am 13 Mai 2022
I'm not certain offhand but I suspect that's a consequence of the changes made in release R2020b.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by