Hi,
I have an interface with two different GUI windows each with a different uitable. Both contain numbers, and both are formatted with editable columns formatted as 'Custom - Bank' format.
In the cell edit callback, when using the "get" function one table produces data in a double format, and the other in a cell format.
handles.Data = get(handles.DataTable, 'data')
Why could this be? What controls this?
I am absolutely baffled. I want to work with my data in the 'double' form.
Thanks in advance,
Matt

댓글 수: 7

Geoff Hayes
Geoff Hayes 2017년 2월 23일
Matt - how are you initializing the data in each table? Are you doing something different so that one table is formatted as a cell array?
Matt
Matt 2017년 2월 23일
편집: Matt 2017년 2월 23일
Hi Geoff, not that I know of but I wrote both of these GUI windows months ago, and i'm not 100% sure. It seems I must be, but I can't see where (this is a big piece of software by my standards).
I gather the initialization dictates the format of the data I retrieve from the table? If so, what could I have done to initialize it differently?
Thanks for the swift response.
Matt
Matt 2017년 2월 23일
Hold any thoughts - I think I may have just found somewhere I initialized it with zeros!
Matt
Matt 2017년 2월 23일
Doh, in my thousands of lines of code I have just spotted that I previously preallocated an array with zeros, modified it, then pushed it into the data table.
That explains why the data retrieved from it was in the 'doubles' form. I can do the same for my other table to get data out in 'doubles' form.
Thanks Geoff - I'm in business again - what i'm trying to do should be much easier now.
Geoff Hayes
Geoff Hayes 2017년 2월 23일
Glad that it worked out, Matt!
Geoff Hayes
Geoff Hayes 2017년 2월 23일
Since you figured out the problem, can you post that as an answer?
Matt
Matt 2017년 2월 23일
Of course, thank you. Have a good day.

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

 채택된 답변

Matt
Matt 2017년 2월 23일

0 개 추천

Doh, in my thousands of lines of code I have just spotted that I previously preallocated an array with zeros, modified it, then pushed it into the data table.
That explains why the data retrieved from it was in the 'doubles' form. I can do the same for my other table to get data out in 'doubles' form.
Thanks Geoff - I'm in business again - what i'm trying to do should be much easier now.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2017년 2월 23일

댓글:

2017년 2월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by