Matrix to Latex

Generate the latex code for any numerical 2D matrix

Vous suivez désormais cette soumission

The function displays the latex code for any numerical 2D matrix on the command window.
INPUTS:
  • M: The numerical matrix to be converted to latex
  • frmt (Optional): The text formatting speciffier. (Default: '%0.4f')
Outputs
  • None
Examples
M = rand(3);
mat2latex(M)
mat2latex(M, '%0.2g');

Citation pour cette source

Ahmed Mahfouz (2026). Matrix to Latex (https://fr.mathworks.com/matlabcentral/fileexchange/135251-matrix-to-latex), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : Matlab matrix to LaTeX conversion example

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0