MATLAB: How can i merge multi columns of a matrix in another matrix with single column

MATLABmatrixmergemulti_column

hello to all
I need to matrix ((2)) and i want to use of matrix ((1)). Then i want convert matrix ((2)) values to corresponding decimal values in another matrix. Please help me.

Best Answer

% 1)
str2double(strrep(join(""+yourmatrix),' ',''))
% OR

% 2)
arrayfun(@(x)polyval(yourmatrix(x,:),10),1:size(yourmatrix,1)).'
% OR
% 3)
reshape(sprintf('%d',yourmatrix),[],size(yourmatrix,2)) % seems to be the fastest after few tests