Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to add a new property to a handle?
Date: Thu, 18 Oct 2007 11:11:38 +0000 (UTC)
Organization: RENAULT TRUCKS SAS
Lines: 33
Message-ID: <ff7f1a$3rs$1@fred.mathworks.com>
References: <ef537ba.-1@webcrossing.raydaftYaTP>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-06-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1192705898 3964 172.30.248.36 (18 Oct 2007 11:11:38 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Oct 2007 11:11:38 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 890185
Xref: news.mathworks.com comp.soft-sys.matlab:433549



Hello,
I'm using your CreateTable function which is very very
useful, and i have a question to take into account
modifications in the table:
When i edit and change a value in the table, the format of
the value change: it is not java.lang.object but string i
guess. For example, with a table magic(4),
I get the typical following data:
data =


    [16]    [ 2]    [ 3]    [13]
    [ 5]    [11]    [10]    [ 8]
    [ 9]    [ 7]    [ 6]    [12]
    [ 4]    [14]    [15]    [ 1]

Each field is java.lang.object, but if i change for instance
the columns 2 and 3, 
data = 
    [16]    '1'    '5'    [13]
    [ 5]    '2'    '5'    [ 8]
    [ 9]    '3'    '5'    [12]
    [ 4]    '4'    '5'    [ 1]

I lost the cell format uniformity, and in this case i can't
reuse it to plot columns for example.

How can I change values of my table with keeping the same
format as the unchanged fields?

Thanks in advance for your help.
Thierry