MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Deleting entire row and/or column



Hi,

to delete rows with elements: 0 or 0. you may use:



DeleteCases[d, {a : (0. | 0) ..}]



To delet columns you use the above with transposeing the matrix.



Daniel



KFUPM wrote:

> Dear all

> 

> I have large matrices having entire rows and/or columns of zeros and I

> want to delete those zero rows and columns. My question, what is the

> best (most compact) command to use in Mathematica. Please note that

> the value of zero is the real zero i.e 0.0000 not just 0.

> 

> Regards,

> 

> 




  • Prev by Date: Re: Deleting entire row and/or column
  • Next by Date: Re: A simple ordinary differential equation
  • Previous by thread: Re: Deleting entire row and/or column
  • Next by thread: Re: Deleting entire row and/or column