Dear Zita, Try > D=reject(D, [] ,newr) Vladimir On 28 Feb 2014, at 19:29, Zita Eva Patai <[log in to unmask]> wrote: > Dear SPMers > > I would like to add my rejection list to D.reject, however when I try > > D=reject(D,:,newr) > > it says i am trying to fill the event info with invalid data ('illegal value for bad flag') > > my 'newr' vector consists of 1s and 0s > > I can do this manually , by opening the file in the GUI and copying and pasting, but I was hoping for a more 'intelligent' solution > > Thanks very much! > z > > -- > Eva Zita Patai, DPhil > Postdoctoral Researcher > Oxford Centre for Human Brain Activity > University of Oxford > >