Symbolic toolbox expressions in table() not shown as LaTeX in livescrit.
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
The title says it all.
Symbolic ToolBox expresions are shown as latex, but is I use table to format my output, as in
table(symbol_column_vector,corresponding_duble_columvector)
expresions are shown in plain text.
Thanks
0 commentaires
Réponse acceptée
Javier Ros
le 4 Nov 2024
3 commentaires
Walter Roberson
le 4 Nov 2024
syms a b c d real
disp([[a,a+b,c-d]', vpa(round([1,2,3.1234]',3))])
Plus de réponses (1)
Walter Roberson
le 30 Oct 2024
Correct. table() is not designed for fancy display formatting.
2 commentaires
Walter Roberson
le 4 Nov 2024
Just do
[symbol_column_vector, vpa(corresponding_double_columnvector,NUMBER_OF_DECIMAL_POINTS)]
This will create a symbolic array with columns aligned. It will be displayed with ( ) around it, though.
Voir également
Catégories
En savoir plus sur Conversion Between Symbolic and Numeric dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!