From: ravi on
for k = 1:length(lines)
nm = [lines(k).point1; lines(k).point2];
end

In my above code, my output is

nm =
3 5
4 9

nm =
44 2
8 32


However, I actually want to get my code to output

nm =
3 5 44 2
4 9 8 32

I tried using this

nm = [cat(1,lines(k).point1); cat(1,lines(k).point2)];


but it didnt work as i got the same result.


Help please.
ravi