Using Latex and symbols e.g. \omega
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
set(0, 'defaultTextInterpreter', 'latex');
sgtitle(["ECE 202 Exercise M7: Current, voltage, and power absorbed";...
sprintf("by a charging Inductor$(V_0 = %gV, R = %g\omega, L = %gmH)$",...
V0, R, L)],'Fontsize', 18)
This is my code. I set latex interpreter at the beginning of the code, because I need to use it multiple times. I am making a title for subplots. My problem is I need to "Add more $ to the title, so that only V_0, R, and L are treated as variables. ". When I try to do this all of the code is displayed, nothing is displayed correctly.
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox 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!