Path: news.mathworks.com!not-for-mail
From: "Bill McKeeman" <mckeeman@cs.dartmouth.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Writing Binary file to reduce file size
Date: Thu, 24 Jul 2008 04:47:01 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 32
Message-ID: <g691g5$6i4$1@fred.mathworks.com>
References: <g62e8r$i37$1@fred.mathworks.com> <muy4p6j89c6.fsf@G99-Boettcher.llan.ll.mit.edu>
Reply-To: "Bill McKeeman" <mckeeman@cs.dartmouth.edu>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216874821 6724 172.30.248.35 (24 Jul 2008 04:47:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 24 Jul 2008 04:47:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 870398
Xref: news.mathworks.com comp.soft-sys.matlab:481407



Peter Boettcher <boettcher@ll.mit.edu> wrote in message 
<muy4p6j89c6.fsf@G99-Boettcher.llan.ll.mit.edu>...
> "Pete sherer" <tsh@abg.com> writes:
> 
> > Hi,
> > Are there any example how to use Matlab to make the 
binary
> > file of data. The goal is to reduce the file size as 
well as
> > the accessing time to the file. Most of the data contain
> > zero, so I hope binary file can be much smaller than the
> > ascii file.
> 
> Yes indeed.
> 
> If you intend to load the data back into MATLAB, and only 
MATLAB, just
> use "save" and "load".  The resulting file is "binary", 
though not in a
> simple format.
> 
> If you wish to access the data from another programming 
language, see
> the documentation for fopen, fwrite, fread, and fclose.
> 
> -Peter

I suggest you try

>> help zip

/s/ Bill