"Li Perry" <lazygoldenpanda@gmail.com> wrote in message <i4bbja$cbn$1@fred.mathworks.com>...
> Hi,
>
> Let "Ind" be a vector of indices, and X some other vector.
> I want to create 2 new vectors:
> 1. X(Ind)
> 2. X(rest of indices)
>
> Is there an easy way to do this?
>
> Thanks,
> Li.

"Li Perry" <lazygoldenpanda@gmail.com> wrote in message <i4bbja$cbn$1@fred.mathworks.com>...
> Hi,
>
> Let "Ind" be a vector of indices, and X some other vector.
> I want to create 2 new vectors:
> 1. X(Ind)
> 2. X(rest of indices)
>
> Is there an easy way to do this?
>
> Thanks,
> Li.