Using Latex and symbols e.g. \omega
6 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Assumptions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!