[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Save produces large files
From: |
Miquel Cabanas |
Subject: |
Re: Save produces large files |
Date: |
Tue, 14 Jun 2005 17:10:33 +0200 |
User-agent: |
Mutt/1.3.28i |
hi,
if the NaN is the culprit, a way to circumvent the problem could
be using find(isnan(a)) to construct a vector holding the position
of all NaN in your matrix, then replace all NaN with some arbitrary
number before saving the matrix and the NaN-indices vector. Hopefully
you should be able to save the file using the -float-binary option.
You should save the pair matrix and index-vector in the same file to
make sure all information is kept together. Last, you only need to
reverse the process when loading the matrix.
On Tue, Jun 14, 2005 at 04:14:44PM +0200, Søren Hauberg wrote:
>
> a = zeros(3); a(5) = NaN;
> octave:25> save -float-binary test.data a
>
> which gives me the following warning:
>
> warning: save: some values too large to save as floats --
> warning: save: saving as doubles instead
>
> Btw. I'm using 2.1.71 on linux
>
Miquel
--
Miquel E Cabanas ------------------------------------------------------
SeRMN, Universitat Autonoma de Barcelona (address@hidden)
------------------------------------------o-oo--ooo---ooo--oo-o--------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Re: Save produces large files, (continued)
- Re: Save produces large files, Søren Hauberg, 2005/06/14
- Re: Save produces large files, David Bateman, 2005/06/14
- Re: Save produces large files, Mike Miller, 2005/06/14
- Re: Save produces large files, David Bateman, 2005/06/14
- Re: Save produces large files, John W. Eaton, 2005/06/14
- Re: Save produces large files, John W. Eaton, 2005/06/14
- Re: Save produces large files, David Bateman, 2005/06/14
- Re: Save produces large files, John W. Eaton, 2005/06/14
- RE: Save produces large files, Frank Palazzolo, 2005/06/14
- Re: Save produces large files, David Bateman, 2005/06/14
- Re: Save produces large files,
Miquel Cabanas <=
- Re: Save produces large files, Søren Hauberg, 2005/06/14
Re: Save produces large files, Keith Goodman, 2005/06/14