matlab behaviour of gzip

Thorsten Meyer thorsten.meyier at gmx.de
Sun Nov 2 03:09:09 CST 2008


Hi,

could someone with access to matlab try what the gzip function produces for these examples:

 - prepare a few files in the shell:
        mkdir ttt
	mkdir ttt/bla
	mkdir ttt/bla/blubb
	touch ttt/bla/11
	touch ttt/bla/22
	touch ttt/bla/33
        touch ttt/bla/blubb/44
	mkdir ttt/zip
 - then in matlab:
	cd ttt
        gzip("bla")
        ls (or is it dir in matlab?)
	gzip("bla", "zip")
	ls zip

What I am interested in: where do the gzipped files 11.gz etc. end up in both cases? Do all the .gz
files end up directly in the zip directory or is the directory hierarchy (bla and bla/blubb)
reproduced under zip?

In octave gzip("bla") gives an error reproduces the directory hierarchy in the zip directory. And
when gzip is called with out the target directory argument, it gives an error. I would like to know,
what matlab does before trying to fix this bug.

thanks

Thorsten



More information about the Help-octave mailing list