From: Ulrik Nash on 12 May 2010 05:08 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
|
Pages: 1 Prev: Multi imroi Next: How to pick up a max element and its column and row number? |