I'm sometimes dealing with matrices up till 20*20 - Is there a way to import these into LaTeX rather than manually typing them via the \begin{matrix} command?

The matrices are usually constructed in MATLAB or Maple - No luck on extracting them from there so far.

So far I have been making screendumps and inserting them as figures, but I would like to utilize the matrix-framework provided in LaTex.

Thank you in advance!


I found the solution, and as it turns out, it was a quite simple on - so I thought I would share it with you.

MATLAB lets you convert any matrix into LaTeX code by using following command:


Latex_Matrix = latex(sym(A))

where A is your defined matrix.

In Maple Execute your matrix, right-click the result then "Conversions->LaTeX".

The result should be ready LaTeX code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.