ranking - (nrow,1 i index vector from the sort...

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

This note was uploaded on 12/10/2009 for the course ME master taught by Professor Mon during the Spring '09 term at Hanyang University.

Ask a homework question - tutors are online