You should preallocate B before the loop as follows: B = cell(10, 1);. and in each iteration of the loop you store n1 in B like so: B{c} = n1;. ... <看更多>
Search
Search
You should preallocate B before the loop as follows: B = cell(10, 1);. and in each iteration of the loop you store n1 in B like so: B{c} = n1;. ... <看更多>
... my_algorithm_that_returns_the_column_vector(); % here we run our algo A(:,i) = v; % here we merge the column vector into a matrix end save my_file.mat A. ... <看更多>