uitable UserData property has inconsistent type

조회 수: 1 (최근 30일)
Thomas
Thomas 2015년 2월 6일
댓글: Thomas 2015년 2월 9일
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
Geoff Hayes
Geoff Hayes 2015년 2월 7일
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 2015년 2월 9일
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.)

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

답변 (1개)

Jan
Jan 2015년 2월 7일
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
Thomas
Thomas 2015년 2월 9일
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.

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by