Filter löschen
Filter löschen

Super and Subscripts for viewing within Matlab Reports?

1 Ansicht (letzte 30 Tage)
Frank Lehmann
Frank Lehmann am 31 Mär. 2018
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

Antworten (0)

Kategorien

Mehr zu Reporting and Database Access 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!

Translated by