Path: news.mathworks.com!not-for-mail
From: "Titus" <titus.edelhofer@mathworks.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: cells and string allocation
Date: Wed, 1 Aug 2007 10:26:49 +0200
Organization: The MathWorks, Inc.
Lines: 51
Message-ID: <f8pg4a$dms$1@fred.mathworks.com>
References: <f8pem6$lij$1@fred.mathworks.com>
NNTP-Posting-Host: de-edelhoft-x.ac.mathworks.de
X-Trace: fred.mathworks.com 1185956810 14044 172.16.75.150 (1 Aug 2007 08:26:50 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 1 Aug 2007 08:26:50 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
Xref: news.mathworks.com comp.soft-sys.matlab:422011



"Corinna Schmitt" <csc@mathworks.com> schrieb im Newsbeitrag 
news:f8pem6$lij$1@fred.mathworks.com...
> 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

Hi Corinna,

use curly braces to assign values/strings to individual cells:
finalTableAndHeader{1,1}='Field'

Titus