matlab向量的排序(自写函数)
function a_ed = arraysort(a)%冒泡排序法for i =1:length(a)-1 %进行多少次比较 for j=1+i:length(a) %每次求出最大的数,放在最后 if(a(j)<a(i)) tem = a(i); a(i) = a(j); ...