Skip to content

This project is a simple tool for converting matrices written in MATLAB-style formatting into LaTeX-friendly syntax.

Notifications You must be signed in to change notification settings

ImStian/MATLAB_TO_LATEX_MATRIX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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}$

About

This project is a simple tool for converting matrices written in MATLAB-style formatting into LaTeX-friendly syntax.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages