ranking - (nrow,1) % i : index vector from the sort routine...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function [r,i]=ranking(x) % [r,i]=ranking(x) % Ranking of a vector % input: % x : vector (nrow,1) % output: % r : rank of the vector
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (nrow,1) % i : index vector from the sort routine (nrow,1) % n=length(x); [s,i]=sort(x); r(i,1)=[1:n]';...
View Full Document

Ask a homework question - tutors are online