text(0,1,-0.075,'\fontname{Times} \fontsize{14}\bf \it e_{\{2\}}');
Curly braces within a subscript?
1 次查看(过去 30 天)
显示 更早的评论
Is it possible to put a pair of curly braces within a graphics text subscript? I understand that curly braces are used as grouping symbols for the contents of a subscript. For example, in a graphics program that includes the comand
text(0,1,-0.075,'\fontname{Times} \fontsize{14}\bf \ite_{2}');
the graphic output places the (boldfaced and italicized) e_2 at the designated location, as in the figure below:

But I am unable to create a text output that has curly braces within the subscript, so that the notation of a set would be within the subscript. When I have tried something like
text(0,1,-0.075,'\fontname{Times} \fontsize{14}\bf \ite_{{2}}');
in an attempt to get (boldfaced and italicized) e_{2} at the designated location Matlab apparently ignores the inside nested curly braces and produces only (boldfaced and italicised) e_2.
I need to make a number of tickmarks in a bar part of the form
P_{1/10} P{2/10} . . .
but I am only able to produce
P_1/10 P_2/10 . . .
Is there a way to have MatLab actually include curly braces as symbols within a text subscript?
Thank you ahead of time.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
