I am running a for loop in MATLAB. Each iteration produces a vector of length different than the vector created in the previous iteration. Is there any why to recover each individual vector? In the end I want to concatenate each of these vectors. My code is something like
for i=1:n
v = zeros(1,i)
end
so after i=n
, v
will be a one by n vector, but I also want to recover the vectors for any i
. In my code, each vector, v
, is not a zero row vector, but a vector of varying size. Thanks.