What does "combine" mean here explicitly? Add the values, average the values, append the data horizontally or vertically, or what else? Which code have you seen and which errors do they have?
The less we have to guess, the easier and more likely helpful is an answer.
Please use meaningful tags: All questions in this forum concern "matlab".