Special Characters App Designer
32 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I would like to make a formula appear on my app designed with App Designer:
h(f) = h0*(3.5+f)^{\α}
I tried to type it as ( following the documentation: https://it.mathworks.com/help/matlab/creating_plots/greek-letters-and-special-characters-in-graph-text.html):
a = 'h(f) = h_{0}*(3.5+f)^{\alpha}';
app.EditField.Text = a;
But it keeps displaying it the exact same way I've written it down, no special characters are shown.
Am I doing it wrong or is this feature not supported within the app.EditField objects?
Thanks in advance!
0 个评论
回答(1 个)
Walter Roberson
2022-9-9
Edit Fields cannot support tex or latex: they are input areas and supporting that possibility would require supporting a latex formula editor.
TextArea could in theory support tex or latex.... but they do not.
You can have a TextArea or EditField display literally
h(f) = h0*(3.5+f)^α
as they support unicode characters -- but the α would not be raised.
4 个评论
Walter Roberson
2022-9-14
Could you confirm that you have a uieditfield and that you are able to set an Interpreter property for it? Interpreter is not a documented property for uieditfield
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!