MATLAB: How to store a matrix within another matrix

lookup tablematrix array

I have a set of data that is 315×3 Double that I need to store as 1×3 double in an array of size 3x5x21. I need it in this form so I can manipulate it in simulink using a lookup table.
What would be a way to do this?

Best Answer

you can turn the matrix into a cell array.