Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.19 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.19 KB

MATLAB-Style Matrix to LaTeX Converter

Overview

This project is a simple tool for converting matrices written in MATLAB-style formatting into LaTeX-friendly syntax. It doesn't require MATLAB itself and is designed for scenarios where you want to take advantage of the concise MATLAB matrix syntax in LaTeX documents.

Formating a matrix in MATLAB is faster than formating it in LaTeX. – Sun Tzu, the art of formating

Usage

How to Use

  1. Clone this repository to your local machine:

    git clone https://github.com/ImStian/MATLAB_TO_LATEX_MATRIX.git
  2. Navigate to the project directory:

    cd MATLAB_TO_LATEX_MATRIX
  3. Run the conversion script:

    python main.py
  4. OR Execute the provided executable file:

    ./latex_matrix_generator.exe
  5. Enter the matrix which should be converted, and click confirm.

Example

Type the matrix as you would in MATLAB with commas (,) separating row elements and semicolons (;) separating rows to get proper LATEX formating.

Input:

 "[1,2;3,4]"

Output:

$\begin{bmatrix} 
1 & 2\\
3 & 4\\
\end{bmatrix}$