From: Oleg Komarov on
"us " <us(a)neurol.unizh.ch> wrote in message <hlv4f0$5c8$1(a)fred.mathworks.com>...
> "Oleg Komarov"
> > % Just sorting the whole T
> > T = [1, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4];
> > [T, SortInd] = sort(T);
> > xLex = T(SortInd)
> > xLex =
> > 1 10 11 12 2 3 4 5 6 7 8 9
> >
> > Which is the solution given by Jan.
> >
> > Oleg
>
> bad news - and - carefully look at this particular T(!)...
> - in general, this approach certainly cannot work...
>
> v=1:12; % another T...
> [v,vx]=sort(v);
> vlex=v(vx)
> % vlex = 1 2 3 4 5 6 7 8 9 10 11 12
>
> us

You're right i have played a little too much without keeping all the steps in mind.

Oleg
First  |  Prev  | 
Pages: 1 2 3 4 5
Prev: winqueryreg
Next: convert video as .wmv to . avi format