MathGroup Archive 2006

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

Search the Archive

Re: question about matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63845] Re: question about matrix
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 19 Jan 2006 00:02:41 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <dqkrvj$pqn$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Transpose[
  Transpose[
    yourMatrix /. {0..}:> Sequence[]
    ] /. {0..}:> Sequence[]
  ]

??
Regards
  Jens
"Tun Myint Aung" <tma at nus.edu.sg> schrieb im 
Newsbeitrag news:dqkrvj$pqn$1 at smc.vnet.net...
|
| Dear Mathgroup,
|
|    I have a matrix and it may have rows and 
columns which are zeros. I
| can drop the rows and columns manually but it is 
troublesome. So my
| question is that how to drop the rows and 
columns that are zeros
| automatically.
|
| Best Regards,
|
| Tun Myint Aung
| Graduate Student
| National University of Singapore
| E1A #02-18
| Kent Ridge, 119260, Singapore
| E-mail g0202015 at nus.edu.sg 
<mailto:g0202015 at nus.edu.sg>
|
|
|
| 



  • Prev by Date: Re: Visualization site updates
  • Next by Date: Beginner--Exporting formatted text files
  • Previous by thread: Re: question about matrix
  • Next by thread: Re: question about matrix