Path: news.mathworks.com!not-for-mail
From: Loren Shure <loren@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: { } ---> [ ]
Date: Tue, 22 Jul 2008 07:56:57 -0400
Organization: The MathWorks
Lines: 22
Message-ID: <MPG.22ef9514690b2a67989893@news.mathworks.com>
References: <g64dnk$rkh$1@fred.mathworks.com>
NNTP-Posting-Host: shurel.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1216727818 7212 172.31.57.117 (22 Jul 2008 11:56:58 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 22 Jul 2008 11:56:58 +0000 (UTC)
User-Agent: MicroPlanet-Gravity/2.70.2067
Xref: news.mathworks.com comp.soft-sys.matlab:480907



In article <g64dnk$rkh$1@fred.mathworks.com>, chinglnc@hotmail.com 
says...
> is it possible to grab/convert the value in the cell array?
> 
> s= {[1 2 3] [3 4 5]} 
> 
> so that it becomes 
> 
> s= [1, 2, 3; 3, 4, 5]
> 

s = {[1 2 3] [4 5 6]}
snew = [s{:}]
s = 
    [1x3 double]    [1x3 double]
snew =
     1     2     3     4     5     6


-- 
Loren
http://blogs.mathworks.com/loren/