Using Latex and symbols e.g. \omega

6 ビュー (過去 30 日間)
Jasilva
Jasilva 2022 年 1 月 27 日
回答済み: Ramesh 2023 年 7 月 7 日
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.

回答 (1 件)

Ramesh
Ramesh 2023 年 7 月 7 日
omega suffex c symbol

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by