Path: news.mathworks.com!not-for-mail
From: "Nitin Chhabra" <nitin.chhabra@st.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: merge two arrays
Date: Fri, 16 May 2008 10:03:01 +0000 (UTC)
Organization: STMicroelectronics
Lines: 43
Message-ID: <g0jm4l$bji$1@fred.mathworks.com>
References: <g0i33h$ntr$1@fred.mathworks.com> <g0jl6u$2n3$1@fred.mathworks.com>
Reply-To: "Nitin Chhabra" <nitin.chhabra@st.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210932181 11890 172.30.248.37 (16 May 2008 10:03:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 May 2008 10:03:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1388017
Xref: news.mathworks.com comp.soft-sys.matlab:468795


"aasim Azooz" <aasimazooz@yahoo.com> wrote in message 
<g0jl6u$2n3$1@fred.mathworks.com>...
> "Young Ryu" <ryuyr77@gmail.com> wrote in message 
> <g0i33h$ntr$1@fred.mathworks.com>...
> > Hi-
> > 
> > I have two arrays:
> > A=
> > 1 2
> > 3 4
> > 5 6
> > 
> > and
> > B=
> > 7 8
> > 9 10
> > 
> > I tried to merge two arrays like:
> > C=
> > 1 2
> > 3 4
> > 5 6
> > 7 8
> > 9 10
> > 
> > Is there any simple method for getting C?
> > 
> > Thanks!
> > 
> > 
> > 
> > 
> > Try 
> C=[A,B]
> 

Hi,

C=[A;B]  ( [A,B] will put them vertically )

cheers,
Nitin