From: Ulrik Nash on
Thanks us! Much appreciated.


"us " <us(a)neurol.unizh.ch> wrote in message <hsdnn0$mff$1(a)fred.mathworks.com>...
> "Ulrik Nash" <uwn(a)sam.sdu.dk> wrote in message <hsdna0$qbl$1(a)fred.mathworks.com>...
> > Hi Everyone,
> >
> > I have a matrix A. Lets say its 5 x 10.
> >
> > Now I wish to perform an operation, where the first 2 columns, say, of A are replaced by all zeros.
> >
> > How is this done?
> >
> > Regards,
> >
> > Ulrik.
>
> one of the many solutions
>
> m=magic(4);
> m(:,1:2)=0;
>
> us