ANN change cell array to 3D matrix