levenshtein_matrix, a MATLAB code which computes the Levenshtein distance matrix defined by two strings.
The information on this web page is distributed under the MIT license.
levenshtein_matrix is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
atbash, a MATLAB code which applies the Atbash substitution cipher to a string of text.
caesar, a MATLAB code which applies a Caesar Shift Cipher to a string of text.
chebyshev_matrix, a MATLAB code which defines the Chebyshev differentiation matrix, by Lloyd Trefethen.
chrpak, a MATLAB code which works with characters and strings.
jordan_matrix, a MATLAB code which returns a random matrix in Jordan canonical form.
levenshtein_distance, a MATLAB code which computes the Levenshtein distance between two strings.
magic_matrix, a MATLAB code which computes a magic matrix, for any odd order n, such that all rows and columns have the same sum.
monoalphabetic, a MATLAB code which applies a monoalphabetic substitution cipher to a string of text.
monopoly_matrix, a MATLAB code which computes the adjacency and transition matrices for the game of Monopoly.
plasma_matrix, a MATLAB code which sets up a matrix associated with a problem in plasma physics.
rot13, a MATLAB code which enciphers a string using the ROT13 cipher for letters, and the ROT5 cipher for digits.
snakes_matrix, a MATLAB code which computes the transition matrix for Snakes and Ladders.
tennis_matrix, a MATLAB code which computes the transition matrix for a game of tennis, which has 17 distinct states.
test_matrix, a MATLAB code which defines test matrices for which the condition number, determinant, eigenvalues, eigenvectors, inverse, null vectors, P*L*U factorization or linear system solution are known. Examples include the Fibonacci, Hilbert, Redheffer, Vandermonde, Wathen and Wilkinson matrices.
usa_matrix, a MATLAB code which defines the adjacency matrix for US states, using a variety of matrix formats.
wathen_matrix, a MATLAB code which compares storage schemes (full, banded, sparse triplet, sparse) and solution strategies (A\x, linpack, conjugate gradient (CG)) for linear systems involving the Wathen matrix, which can arise when solving a problem using the finite element method (FEM).
web_matrix, a MATLAB code which stores sample matrices describing a web page network. These matrices are typically very sparse, and the examples here are stored using the sparse triplet (ST) format. They can be used to demonstrate pagerank and other graph algorithms.
wishart_matrix, a MATLAB code which produces sample matrices from the Wishart or Bartlett distributions, useful for sampling random covariance matrices.