Why are MAT files created by Julia significantly larger than those created by Matlab?

I think MAT.jl doesn’t use compression by default. There’s a kwarg you need to add: compress = true
I looked into the test folder: https://github.com/JuliaIO/MAT.jl/blob/3ed629c05f7261e86c0dde0869d265e99a265efb/test/write.jl#L22
Example: matwrite(joinpath(new_dir, fname), data; compress=true)

5 Likes