How to create tables and titles from Matlab variables in a Latex published script.

2 vues (au cours des 30 derniers jours)
jeremy
jeremy le 15 Mar 2017
I am trying to insert tables and titles into a Latex published document from variables. I understand how to do this by writing them directly into the script comments. I would like to have them generated from my variables, such as in the following example:
<latex>\n\begin{table}[htdp]\n\begin{tabular}{c|c|c}\n</latex>
disp(A)
<latex>\n\end{tabular}\n\end{table}\n</latex>
However, this results in the following latex output. The variable is inserted as 'verbatim' and the table configuration code is inserted in two different paragraphs. I have a similar problem when trying to insert a title from a variable. Thanks for any help!
\begin{par}
\begin{table}[htdp]
\begin{tabular}{c|c|c}
\end{par} \vspace{1em}
\color{lightgray} \begin{verbatim} 0.3371 0.3112 0.6020
0.1622 0.5285 0.2630
0.7943 0.1656 0.6541
\end{verbatim} \color{black}
\begin{par}
\end{tabular}
\end{table}
\end{par} \vspace{1em}

Réponses (0)

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by