再输入函数后直接转置就好了 a‘
a=[];for ii=1:10for jj=1:10 a=[a,rand];endend
取个转置就是列矩阵了
%例如:a=[];b=[];for i=1:5;a(i)=i;b(i,i)=5;endab