function bubblesort
sortarray= round(90*rand(1,10));
sortarray
length=size(sortarray,2);
for i=1:length-1
for j=1:length-i
if sortarray(1,j+1)<sortarray(1,j)
temp=sortarray(1,j);
sortarray(1,j)=sortarray(1,j+1);
sortarray(1,j+1)=temp;
end
end
end
sortarray