How do I add a column vector at the end of another column vector in a for loop
7 views (last 30 days)
inxi = labels_win(:,1);
inx(:,i) = inxi-ws*(step-1);
val(:,i) = labels_win(:,2);
I am generating a column vector with each iteration of a for loop. I want to store each output inside the matrix "inx"
but I receive the following error
% Unable to perform assignment
% because the indices on the
% left side are not compatible
% with the size of the right
I need to store each iteration in a different column, how can I do that?
Note: Length of the columns vary