[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: |
Fri, 09 Feb 2007 10:40:48 +0100 |
> 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
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen:
http://www.gmx.net/de/go/topmail?ac=OM.GX.GX003K11713T4783a