help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave saves variable in Matlab format in large size


From: Benjamin Lindner
Subject: Re: Octave saves variable in Matlab format in large size
Date: Mon, 12 Feb 2007 08:37:35 +0100

> Benjamin Lindner wrote:
> >> Hi,
> >>
> >> Just noticed that variables saved with '-mat-binary' option in Octave
> >> result in larger file size than Matlab's. For example,
> >>
> >> In Matlab (ver. 7.0)
> >> z = zeros(5000,999,3);
> >> save 'z.mat' z
> >> generates a file of size 53K bytes, which seems to contain only a
> >> minimum data.
> >>
> >> While in Octave, the command
> >> z = zeros(5000,999,3);
> >> save '-mat-binary' z.mat z
> >> results in a file of size 119,880,208 bytes, the full size of 5000 x
> 999 x
> >> 3
> >> doubles.
> >>
> >> Any comments?
> >>     
> >
> > Matlab v7 by default compresses binary data.
> > Stating "-mat-binary" in octave refers to the v6 format, where
> compression
> > was not available in matlab.
> > Try "-mat7-binary" or "-v7" instead
> > see also "help save"
> >
> > ben
> >   
> I'm using 2.1.72, and there doesn't seem to have the option -v7 or 
> -mat7-binary...
> Am I right?

Yes, the v7 binary format was introduced in 2.9.x (dont't know which x
exactly, though)

benjamin

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out


reply via email to

[Prev in Thread] Current Thread [Next in Thread]