MATLAB: What is the difference between mlreportgen.ppt.Text and mlreportge​n.ppt.Para​graph

MATLAB Report Generator

I am using the Report Generator to generate a PowerPoint presentation. The documentation distinguishes between Text and Paragraph objects. What is the difference between these two objects?

Best Answer

A Paragraph is a container for strings and Text objects. A Paragraph object specifies a format that applies to all the strings that it contains. Paragraph objects also allow you to align text horizontally (left, center, right) relative to the sides of a slide or table entry.
Text objects can override the paragraph formatting for the strings they contain. For example, you could use a Text object to make one word red in a sea of black.