This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

mlreportgen.ppt.Subscript class

Package: mlreportgen.ppt




subscriptObj = Subscript() creates a subscript object.

subscriptObj = Subscript(value) creates a subscript object.

Input Arguments

expand all

Display text as a subscript, specified as a logical. A setting of true (or 1) renders text as a subscript.

Data Types: logical

Output Arguments

expand all

Subscript, returned as an mlreportgen.ppt.Subscript object.


expand all

ID for PPT API object, specified as a character vector. A session-unique ID is generated as part of object creation. You can specify an ID to replace the generated ID.

Tag for this PPT API object, specified as a character vector. The generated tag has the form CLASS:ID, where CLASS is the object class and ID is the value of the Id property of the object.

An example of a reason for specifying your own tag value is to make it easier to identify where an issue occurred during presentation generation.


collapse all

Set up a paragraph to display H2O.

Set up a presentation.

import mlreportgen.ppt.*
slidesFile = 'mySubscript.pptx';
slides = Presentation(slidesFile);
slide1 = add(slides,'Title and Content');

Create the subscript text and append it to a paragraph with regular text.

sub = Text('2');
sub.Style = {Subscript(true)};

para = Paragraph('H');

Use the paragraph to replace the slide content, generate the presentation, and open the mySubscript presentation. (The winopen code works on Windows® platforms.)


if ispc

Introduced in R2015b