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

Another alternative is ElasticArrays.jl. The example in the README is similar to what you describe in your post.