Add Text Subscript to Table string
23 views (last 30 days)
Show older comments
Hello:
Say I have a composite.
The composite has a layup [0 90 0 90 0_8]
I am trying to output this layup into a table using the table() function. This is my current output:
Example="[0 90 0 90 0 90 0_8]"
T=table(Example,'RowName',"Layup Orientation")
I want the 8 to be a subscript on the 0. How do I do this?
Thank you very much,
Luck
0 Comments
Answers (1)
Steven Lord
on 28 Sep 2022
You don't. The text in the table doesn't have any sort of formatter or interpreter associated with it; it's a collection of characters.
If you were to specify that as the appropriate property of a Handle Graphics object, an object with something like an Interpreter property, you could tell it to interpret the string differently when that object displays it. For instance, a plot's Title is a text object with an Interpreter property.
title("[0 90 0 90 0 90 0_8]", 'Interpreter', 'Tex')
1 Comment
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!