Path: news.mathworks.com!not-for-mail
From: "Corinna Schmitt" <csc@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: cells and string allocation
Date: Wed, 1 Aug 2007 08:02:14 +0000 (UTC)
Organization: University of Stuttgart
Lines: 32
Message-ID: <f8pem6$lij$1@fred.mathworks.com>
Reply-To: "Corinna Schmitt" <csc@mathworks.com>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185955334 22099 172.30.248.36 (1 Aug 2007 08:02:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 1 Aug 2007 08:02:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1071129
Xref: news.mathworks.com comp.soft-sys.matlab:422007


Hallo,

I work with cells in my program. I constrcuted the following:

finalTableAndHeader = 

     []     []     []     []    'prim_sec'    'Name'                'Integral [QL]'    'Bkg [QL]'    'MchipsID'   
     []     []     []     []    '1'           'L14_250ng/ul'        '89124.0'          '67080.0'     '02_02_16_19'
     []     []     []     []    '0'           'L14_250ng/ul'        '101659.0'         '61152.0'     '02_02_16_19'
     []     []     []     []    '1'           'L14_650ng/ul'        '114324.0'         '62400.0'     '02_02_16_17'
     []     []     []     []    '0'           'L14_650ng/ul'        '142161.0'         '67392.0'     '02_02_16_17'

Now I want to fill the following cells with:

finalTableAndHeader(1,1)='Field'
finalTableAndHeader(1,1)='Plate'
finalTableAndHeader(1,1)='Letter'
finalTableAndHeader(1,1)='Number'

It does not work, always I get the error message:
??? Conversion to cell from char is not possible.

Error in ==> aidaimportV4 at 105
finalTableAndHeader(1,1)='Field'

The rest of this four columns should be filled with numbers which will be extracted from the column MchipsID. Example: '02_02_16_19' --> Field=2, Plate=2, Letter=16, Number=19

Finaly the finalTableAndHeader should be stored in an ASCII file.

Can anyone help me?

Thanks, Corinna