Not automatically. But for your example you can create two arrays of strings and then concatenate them together. For example: s = 'x1':'x10'; r = 'y1':'y10'; c = cats(s,r); print c;