help-octave
[Top][All Lists]
Advanced

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

Joining arrays


From: CLOSE Dave
Subject: Joining arrays
Date: Tue, 23 Jun 2009 17:14:35 -0700

I started working with Octave only about a month ago but I'm still
confused. I can't seem to find the right way to do something which ought
to be pretty simple. I want to join two arrays to make a bigger array.
That is, given arrays A and B like,

  A = a b c       B = 1 2 3
      d e f           4 5 6
      g h i           7 8 9

I want to create array C like,

  C = a b c 1 2 3
      d e f 4 5 6
      g h i 7 8 9

(I'm using letters to stand for numbers, not as strings. It's just to
keep my example to single characters.)

What I keep getting is an array of arrays,

  C(1) = a b c     C(2) = 1 2 3
         d e f            4 5 6
         g h i            7 8 9

What simple operation am I missing?




reply via email to

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