clear all clc;N = 10;x = zeros(1,N);for i =1:N x(i) = rand();end y = zeros(2,length(x));y(2,:) = 1:length(x);for i = 1:length(x)for j = i+1:length(x)if x(i) < x(j)temp1 = x(i);x(i) = x(j);x(j) = temp1;temp2 = y(2,i);y(2,...