You can first initialize row
to be an empty array (or cell array) as follows:
row = []; %# Empty array
row = {}; %# Empty cell array
Then you can append a new row to the array (or a new cell to the cell array) like so:
row = [row; another_row(y)]; %# Append a row to the array
row = [row; {another_row(y)}]; %# Append a cell to the cell array
See the documentation for more information on creating and concatenating matrices.
It should also be noted that growing arrays like this is not very efficient. Preallocating an array, assuming you know the final size it will be, is a much better idea. If you don't know the final size, allocating array elements in chunks will likely be more efficient than allocating them one row at a time.