Add Text Subscript to Table string
조회 수: 19 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Steven Lord
2022년 9월 28일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Assembly에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!