A question on creating an array

I have a matrix X1 with the size of 360 * 180.

My goal is to create an array X2 with 100 layers, and each layer will have a matrix identical to X1, so that my final array X2 will have a size of 360 * 180 * 100.

How do I do that? Many thanks!

X2 = repeat(X1; outer=(1,1,100))
2 Likes

Many thanks for the solution!