extracting 2d matrix from a 3d matrix.

John Knowles
11-14-2013, 03:04 PM
Suppose I create a 3D matrix:
Mat3DDoub NRstate3D(dim_array[0],dim_array[1],dim_array[2]);

I assumed I would be able to treat this as a matrix of matrices. However compiler complains when I try this:
where the header is:
Doub ValApprox(MatDoub NRstate,Parameters Params,MatDoub_O ValFit,FlagStruct FlagVec,int flag);

Am I doing it wrong, or is it simply not possible to treat a 3d matrix as a matrix of matrices?