MATLAB: How to create a vector

arrayvectors

Hello everyone, Suppose with a for loop I get an array for each file (array could be of different lengths for each file). I want to get a column vector which will be merging of these arrays. So all the values of arrays from each file will be in this huge vector. Thank you for you help in advance.

Best Answer

vector=[];
for j=1:n
% find newone that comes from file(j)
vector = [vector , newone]
end