# Tag Info

5

If all you need is a matrix, you can do this: strrep(strrep(mat2str(A),",","&"),";","\\\\\n")(2:end-1) where A is your matrix. That will give you the body of your matrix, without the \begin{matrix} and \end{matrix} strcat("\\begin{bmatrix}\n",strrep(strrep(mat2str(A),",","&"),";","\\\\\n")(2:end-1),"\n\\end{bmatrix}\n") will generate the whole ...

4

Your MWE uses commands from the graphicx and color packages but does not load them so produces errors about undefined commands. So it needs to be \documentclass[]{report} \usepackage{graphicx,color} \begin{document} \input{comparison.tex} % Uses commands from the graphicx and color packages \end{document} Then line 7 of the included file is ...

3

But it is closed source. Is there something Open Source or should I attempt to try and accumulate people to write it? If you aren't completely wedded to Octave, you can use Sage to do this. sage: M = matrix([[2,3],[3,2]]) sage: latex(M) \left(\begin{array}{rr} 2 & 3 \\ 3 & 2 \end{array}\right) sage: a = integral(x^2,x) sage: latex(a) ...

Only top voted, non community-wiki answers of a minimum length are eligible