Dear all,
Here is a one-liner for getting ranks with toes:
[~,rank_vector]=ismember(data_vector,unique(sort(data_vector)));
Nir
"Claudia " <claudia_seibold@gmx.de> wrote in message <jr3ij4$el6$1@newscl01ah.mathworks.com>...
> Hi Sebastian
>
> Just had the same problem and was looking for a solution.
> I prefer your one! so simple (after knowing it :-) ) and so good !!! I like it that way!
>
> Cheers, Claudia
>
>
>
> "Sebastian" wrote in message <j204mu$7k4$1@newscl01ah.mathworks.com>...
> > How about
> >
> > [~,i]=sort(x);
> > [~,xRanks]=sort(i);
> >
> > Cheers
> > Sebastian
Here is a one-liner for getting ranks with toes:
[~,rank_vector]=ismember(data_vector,unique(sort(data_vector)));
Nir
"Claudia " <claudia_seibold@gmx.de> wrote in message <jr3ij4$el6$1@newscl01ah.mathworks.com>...
> Hi Sebastian
>
> Just had the same problem and was looking for a solution.
> I prefer your one! so simple (after knowing it :-) ) and so good !!! I like it that way!
>
> Cheers, Claudia
>
>
>
> "Sebastian" wrote in message <j204mu$7k4$1@newscl01ah.mathworks.com>...
> > How about
> >
> > [~,i]=sort(x);
> > [~,xRanks]=sort(i);
> >
> > Cheers
> > Sebastian