MathGroup Archive 2009

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

Search the Archive

Re: Deleting entire row and/or column


newmatrix = Nest[Transpose@Select[#,#.#>0&]&,oldmatrix,2]

On Apr 1, 12:50 pm, KFUPM <hussain.alqaht... at gmail.com> 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: Interpolation: Method->"Spline"
  • Next by Date: Joust in Mathematica
  • Previous by thread: Re: Deleting entire row and/or column
  • Next by thread: Re: Deleting entire row and/or column