Super and Subscripts for viewing within Matlab Reports?

1 view (last 30 days)
Hi All,
I've generated some reports to call the below code:
textForItem1 = Text(['Conductor Size Chosen = ',num2str(C),' mm^2']); step2 = ListItem(textForItem1);
I've appended the ordered list, procedure to the relevant section. All seems fine.
When the report is generated I get exactly mm^2 where as I want it the 2 to be superscripted. Ive tried additional code str, strcat, fprint etc to no avail?
I guess I need some code which assigns a str/variable and calls the conductor size (C, an integer) the text (mm^2, 2 superscripted)and then implement this in the above code as num2str() and remove the ' mm^2'.
Any ideas much appreciated.
Frank

Answers (0)

Categories

Find more on Reporting and Database Access 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!