How do I create a LaTeX table In a MATLAB text box?

13 vues (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 27 Juin 2009
I would like to create a LaTeX table In a MATLAB text box.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 27 Juin 2009
A LaTeX table can be used in a MATLAB text box. The following example illustrates how to do that:
cs = '\begin{tabular}{lll} Chicago&U.S.A.&1893\\ Z\"{u}rich&Switzerland&1897\\ Paris&France&1900\\ Heidelberg&Germany&1904\\ Rome&Italy&1908 \end{tabular}';
figure;
ha = annotation('textbox',[0.5 0.5 0.4 0.2], 'Interpreter', 'latex');
set(ha, 'String', cs);
Follow the URLs below for more details on 'Annotation Textbox Properties' and LaTeX interpreter:
<http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/annotationtextboxproperties.html>
<http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/text_props.html>

Plus de réponses (0)

Catégories

En savoir plus sur Language Support 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