|
When M is odd, the block sorts the column elements by value, and outputs the central row of the sorted matrix. s = sort(u);
y = s((M+1)/2,:)
When M is even, the block sorts the column elements by value, and outputs the average of the two central rows in the sorted matrix. s = sort(u);
y = mean([s(M/2,:);s(M/2+1,:)])
E-mail: info@telesys.ru