uitable UserData property has inconsistent type

1 Ansicht (letzte 30 Tage)
Thomas
Thomas am 6 Feb. 2015
Kommentiert: Thomas am 9 Feb. 2015
I have an old GUI created with Guide that has a uitable. When I run it in 2014b, its property 'UserData' is initialized to
1x0 empty Graphics array
(I set a breakpoint in OpeningFcn to see this.)
If I create a uitable in a new gui under 2014b, 'UserData' is initialized to an empty double array, [].
I don't understand this, what could I be doing that results in such inconsistent behavior?
  2 Kommentare
Geoff Hayes
Geoff Hayes am 7 Feb. 2015
Thomas - have you verified in the property inspector that the UserData of the uitable (from the old GUI) is not an empty vector? What does the inspector show you?
Thomas
Thomas am 9 Feb. 2015
Thank you for this insight, it was very helpful.
In the inspector, the value was completely empty, that was interpreted as a 1 x 0 empty Graphics array. If I enter the text '[]', it is interpreted as a 0 x 0 double array.
(In 2013b you could edit the value in the inspector, in 2014b a separate edit tool pops up.)

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jan
Jan am 7 Feb. 2015
The graphics system has changed in 2014b. The GUIs created by GUIDE are not designed to be independent from the platform. So it is not "inconsistent", if an old GUI shows a different behavior compared with a new GUI.
  1 Kommentar
Thomas
Thomas am 9 Feb. 2015
So what am I supposed to do with the old gui, throw it away? There is no tool to update it.
The documentation is not clear, anyway, while the graphics system has changed, a GUIDE created .fig is just a file. And why should an old gui use the new graphics system, but a new gui still behaves like in the old graphics system?
I will probably have to convert it to a programmatic gui.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by