Matrix formation to store time history

Dear all

I have an iterative process in which for a time period I have to store velocity and pressure field in every time step and then I have a huge matrix having all the information of velocity and pressure to solve the next equation.

how can I define such a matrix?

BR