Thank you all very much. I have solved the problem using lists of matrices. But yes, I will certainly look into the issue of the names for higher-dimensional arrays. Regards, Min-han