hb_to_st, a MATLAB code which accepts the name of a file containing a sparse matrix in the Harwell Boeing (HB) Sparse Matrix File Format, and which reads that data and writes a corresponding Sparse Triplet (ST) file.


hb_to_st ( 'hb_file', 'st_file' )


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


hb_to_st is available in a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

hb, a dataset directory which contains a collection of sparse matrices in the HB format.

hb_io, a MATLAB code which reads and writes Harwell-Boeing files, used by HB_TO_MSM.

hb_to_mm, a MATLAB code which converts a sparse matrix from Harwell-Boeing to Matrix Market format.

hb_to_msm, a MATLAB code which reads an HB file and converts the matrix to MATLAB's sparse matrix format.


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.

mxm_to_hb, a MATLAB code which converts a MATLAB sparse matrix into a Harwell-Boeing file.

msm_to_st, a MATLAB code which writes a MATLAB sparse matrix to a ST Sparse Triplet file;

plasma_matrix, a MATLAB code which demonstrates how a large sparse MATLAB matrix can be written to or read from a Harwell-Boeing sparse matrix file.

st, the format which is used for the output of this program.

st_io, a MATLAB code which reads and writes ST Sparse Triplet files.


  1. Iain Duff, Roger Grimes, John Lewis,
    User's Guide for the Harwell-Boeing Sparse Matrix Collection,
    October 1992.
  2. Iain Duff, Roger Grimes, John Lewis,
    The Rutherford-Boeing Sparse Matrix Collection,
    Technical Report RAL-TR-97-031,
    Rutherford Appleton Laboratory, 1997.

Source Code:

Last revised on 29 January 2019.