From: asir Dass on
hi,
I had created a table in matlab GUI which is editable and i am able to add new row to the table by pressing a key, how ever when i generate a new row all the coloumns format changes to numeric and i am not able to enter any string/character into the newly added row.
whenever i try to add character to the new row it displays a messaage NaN and does not accept the character. I am struggling with this problem for over a week now. Please help me if anybodu of you know the answer
Thanks.
From: Philip on
"asir Dass" <aforasir(a)gmail.com> wrote in message <hu5rac$d90$1(a)fred.mathworks.com>...
> hi,
> I had created a table in matlab GUI which is editable and i am able to add new row to the table by pressing a key, how ever when i generate a new row all the coloumns format changes to numeric and i am not able to enter any string/character into the newly added row.
> whenever i try to add character to the new row it displays a messaage NaN and does not accept the character. I am struggling with this problem for over a week now. Please help me if anybodu of you know the answer
> Thanks.

After speaking the the Mathworks, the problem is the format of the cell entries that you added. This is you want the cell table enrtires of the new row to be blank strings.

The table here: http://www.mathworks.com/access/helpdesk/help/techdoc/ref/uitableproperties.html#brglhyc
explains what will happen based on the data TYPE of the cell array and the requested column FORMAT for the uitable. (The table is at the bottom of the ColumnFormat entry, just above the ColumnName entry).

Hope this helps