Add Text Subscript to Table string
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Steven Lord
am 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 Kommentar
Luck Haviland
am 28 Sep. 2022
Bearbeitet: Luck Haviland
am 28 Sep. 2022
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!