for i = 1:N for row = 1 : n for col = 1:m grad(row,col)= .... %%%% I get a n x m matrix %%%% end end gradv = grad(:); %%% Now I convert the matrix in a column vector %%%
%%%% For the outer loop "for i = 1:N", I get a coulmn vector gradv on every iteration. I want to put it in a matrix N x (nxm).
gradmatrix = gradv (1); gradv(2);... gradv(N) %%% How do I do this?
MATLAB: Putting column vector in a matrix
column vectors
Related Question
- How to do a quick division between a column array and a matrix
- The replacement is slow. is there a better way
- How to add to txt file from certain point
- Unable to perform assignment because the indices on the left side are not compatible with the size of the right side. Error in Q38 (line 10) Mat(row,col)=t1
Best Answer