About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 6 years ago
  • Total downloads: 103
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Arvid Bottiger
See full specifications

scripts default iconFast function to save a matrix (Scripts) Publisher's description

write_matrix_bin(f,m) saves the matrix "m" in a binary
file "f".

write_matrix_bin(f,m) saves the matrix "m" in a binary
file "f". write_matrix_bin is a lot faster than the built in function save(), and
takes up much less diskspace than the old "save -v6" which doesn't use compression.

write_matrix_bin also includes an option for compression with dzip
(http://www.mathworks.com/matlabcentral/fileexchange/8899). However, this
is only for convenience, and not because it's superior than the built in save()

Limitations: Think before you use write_matrix_bin() instead of save().
* Since write_matrix_bin() as default saves values as float32 it will approximate your data.
* you can't save a large matrix with compression turned on. java will urn of out heap space. This is a problem with dzip.

Here's a real life example (8000000 bytes = 7.6MB):

>> whos data_matrix
Name Size Bytes Class Attributes

data_matrix 100x100x100 8000000 double

Writing data to the disk

write_matrix_bin('write.compressed.test', data_matrix, 'compress', 1) => 0.509179 seconds. Filesize: 884K
save('write.save.test', 'data_matrix') => 0.582949 seconds. Filesize: 996K
write_matrix_bin('write.uncompressed.test', data_matrix) => 0.082440 seconds. Filesize: 3.9M
save -v6 'write.savev6.test' 'data_matrix' => 0.292839 seconds. Filesize: 7.7M

Reading data from the disk

read_matrix_bin('write.compressed.test', 'compress', 1) => 0.349878 seconds.
read_matrix_bin('write.uncompressed.test') => 0.103816 seconds.
load('write.save.test') % the compressed file => 0.088620 seconds.
load('write.savev6.test') % the uncompressed file => 0.061182 seconds.

System Requirements:

MATLAB 7.8 (R2009a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Fast function to save a matrix (Scripts) Tags:

Click on a tag to find related softwares

Is Fast function to save a matrix (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.