Re: Removing Zero's from a Matrix
- From: "Pela kramden" <huizet@xxxxxxxxx>
- Date: Tue, 28 Feb 2006 21:49:48 -0500
NZTideMan wrote:
Thanks for your suggestion.
If the zeros are EXACTLY zero, then this will work:
newdata=olddata(olddata~=0);
I have a matrix with 30,000 rows and 6 columns. I checked and all the
elements of a particular row are zero.
i tried what you suggested and it gives me only the first column of
data with the non zero elements :- ( I do not know how to get the
other columns into this non-zero matrix.
.
- Follow-Ups:
- Re: Removing Zero's from a Matrix
- From: NZTideMan
- Re: Removing Zero's from a Matrix
- Prev by Date: memory usage of mcr
- Next by Date: Re: memory usage of mcr
- Previous by thread: memory usage of mcr
- Next by thread: Re: Removing Zero's from a Matrix
- Index(es):
Relevant Pages
|