How to append 3 dimension array( matrix) for example in MATLAB M(:,:,i) = b

You use the cat function with the dims keyword (Arrays · The Julia Language):

C = cat(A, B; dims=3)
1 Like