I have two mesh grid xg =5×5 LazyGrids.GridUR{Int64, 1, 2}: [1 1 1 1 1; 2 2 2 2 2; 3 3 3 3 3; 4 4 4 4 4; 5 5 5 5 5]
and yg =5×5 LazyGrids.GridUR{Int64, 1, 2}: [1 1 1 1 1; 2 2 2 2 2; 3 3 3 3 3; 4 4 4 4 4; 5 5 5 5 5]
,
How can I change these two meshs into position coordinates like (1,1), (1,2)..., (1,5), ..., (5,5)
?
collect(zip(xg,yg))
?
(There is probably a better way to approach your problem that doesn’t involve explicitly materializing this array, but without more context it’s hard to give better advice.)
Thanks, this is what I want