mm_io, a MATLAB code which reads and writes files in the Matrix Market (MM) file format.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


mm_io is available in a C version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

ccs_io, a MATLAB code which reads and writes sparse linear systems stored in the Compressed Column Storage (CCS) format.

dlap_io, a MATLAB code which reads and writes DLAP sparse matrix files;

hb_io, a MATLAB code which reads and writes sparse matrices stored in the Harwell-Boeing format.

mm, a data directory which contains a description and examples of the Matrix Market format for storing matrices.


mm_to_msm, a MATLAB code which reads a Matrix Market file defining a sparse matrix, and creates a corresponding MATLAB sparse matrix data structure.

mm_to_st, a MATLAB code which reads the sparse matrix information from an MM Matrix Market file and writes a corresponding ST Sparse Triplet file.

msm_to_mm, a MATLAB code which writes a MATLAB sparse matrix to a Matrix Market file;

st_to_mm, a MATLAB code which converts a sparse matrix file from ST format to MM format (Matrix Market format);

test_mat, a MATLAB code which defines various test matrices.


  1. Ronald Boisvert, Roldan Pozo, Karin Remington,
    The Matrix Market Exchange Formats: Initial Design,
    National Institute of Standards and Technology,
    NISTIR 5935, December 1996

Source Code:

Last revised on 21 February 2019.