help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: union of cells


From: Daniel Oberhoff
Subject: Re: union of cells
Date: Fri, 29 Sep 2006 13:13:12 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060915)

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}
>
>
> thank you
> Claudio
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>   
For 1D cell arrays like in your example do

{A{:}, B{:}}

the {:} expands cell arrays as a linear argument list, so this will
create a new cellarray made of the two.


Daniel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]