help-octave
[Top][All Lists]
Advanced

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

Re: SV: union of cells


From: David Grohmann
Subject: Re: SV: union of cells
Date: Fri, 29 Sep 2006 09:06:50 -0500
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Peter J. Acklam wrote:
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}
    

Exactly the same way as with any other kind of array:

[A B]

You'll save yourselves a lot of time if you read a text on basic Octave syntax. :-)

Peter
  

_______________________________________________ Help-octave mailing list address@hidden https://www.cae.wisc.edu/mailman/listinfo/help-octave
Just to be clear is that really a union (set union) or just concatenation. Would duplicates be removed in the output? I thought that was just concatenation.

-- 
David Grohmann
Senior Student Associate
Applied Research Lab : UT Austin : ESL - S206
Office: 512-835-3237


reply via email to

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