MATLAB: How can i make a storage in simulation for matrix

MATLABsimulation

i'm creating a simulation and the following is part of the code
for i=1:k
samples=ssvs(e,y,q,m,k)
z(i,:)=samples
end.......
note: e ,y ,q are variables and ssvs function will give a matrix of order m rows and q columnes i want z to store the results same as horzcat i mean i want z save first result then second then the next tell the simulation ends z order will be m*k rows and q columnes

Best Answer

z=[];
for i=1:k
samples=ssvs(e,y,q,m,k);
z=[z samples ];
end