[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: union of cells
From: |
Miquel Cabanas |
Subject: |
Re: union of cells |
Date: |
Fri, 29 Sep 2006 13:56:47 +0200 |
hi,
On Fri, 2006-09-29 at 12:25 +0200, Claudio Belotti wrote:
> dear all,
> how do I get the union of two cells?
>
> I mean:
>
> A ={"abc",1,2,3}
> B ={"def",4,5,6}
>
> union of A & B = {"abc",1,2,3,"def",4,5,6}
see cat(), horzcat() and vertcat(),
octave:10720> A
A =
{
[1,1] = abc
[1,2] = 1
[1,3] = 2
[1,4] = 3
}
octave:10721> B
B =
{
[1,1] = def
[1,2] = 4
[1,3] = 5
[1,4] = 6
}
octave:10722> horzcat(A, B)
ans =
{
[1,1] = abc
[1,2] = 1
[1,3] = 2
[1,4] = 3
[1,5] = def
[1,6] = 4
[1,7] = 5
[1,8] = 6
}
Miquel