MATLAB: 3 dimentions matrix Creation

3d matrixMATLAB

Hei, I have this matrix
A=[4 -1 1;4 -8 1;-2 1 5]
And I want to add a third dinention (page) to it with only one element from 1 to 100 ie every page have my same matrix but the page numbers change from 1 to 100. Any help is appretiated

Best Answer

I think you asking how to do this:
A = repmat(A,1,1,100);