New answers tagged

3

I suggest you acquaint yourself with the pmatrix and align* environments. In the code below, I use \xi rather than # to denote the generic placeholder variable. \documentclass{article} \usepackage{mathtools} % provides '\shortintertext' macro, loads 'amsmath' package \begin{document} \begin{align*} T_6 &= \begin{pmatrix} c_6 \xi_6+s_6\xi_3 & ...


1

I don't know of a way to solve 1, Matlab knows how to write to latex, but it is not a typesetting software. However, 2 is possible and quite easy. You could use latexTable to convert your data to a table: A = rand(4,5); A(1,:) = A(1,:)*200; A(3,:) = A(3,:)*10; input.data = A; input.dataFormat = {'%.2f'}; latext = latexTable(input); in latext you now have ...


1

My recommendation would be to use the package matlab-prettifier, which is based on listings but provides enhanced features for MATLAB code above and beyond those provided by listings' Matlab language definition (including support for block comments): \documentclass{article} \usepackage{matlab-prettifier} \lstset{style=Matlab-editor} \begin{document} \begin{...


0

I just found a simple solution today while using their latest version of matlab2tikz. Run the code in LuaLaTeX instead of pdfLaTeX. This solves the issues of ! TeX capacity exceeded, sorry [main memory size=5000000] while running on Mac or TeX capacity exceeded, sorry [main memory size = 3000000] in case of Windows OS. But I found a new problem on the ...


2

The two problems can be fixed by editing the call to matlab2tikz to the following: matlab2tikz('test.tikz', 'height', ... '\figureheight', 'width', '\figurewidth', ... 'showInfo', false,... 'extraaxisoptions','ytick={-16,-14,...,4}', ... 'extratikzpictureoptions','trim axis left,trim axis right'... ); Instead of the extraaxisoptions, ...



Top 50 recent answers are included