| Simulink® Verification and Validation™ | ![]() |
para_obj = ModelAdvisor.Paragraph
A variable representing the paragraph object created.
Creates and formats a paragraph.
| Name | Description |
|---|---|
| setAlign | Specify paragraph alignment |
| addItem | Add paragraph element |
Specify paragraph alignment
setAlign(alignment)
A string that specifies the alignment of the text. Possible alignments include:
Align left
Align right
Align center
Specifies the paragraph alignment. The default is left.
Add paragraph element
addItem(element)
A string, element, or cell array of elements to add to the paragraph.
Adds an element to the paragraph.
report_paragraph = ModelAdvisor.Paragraph;
report_paragraph.setAlign('center');
report_text = ModelAdvisor.Text('Magic Square', {'bold'});
report_text.setItalic(true);
report_image = ModelAdvisor.Image;
report_image = ModelAdvisor.Image; report_image.setImageSource(...
'http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/p09.gif');
line_break = ModelAdvisor.LineBreak;
report_paragraph.addItem([report_text line_break line_break report_image]);ModelAdvisor.Image, ModelAdvisor.LineBreak, ModelAdvisor.List, ModelAdvisor.Table, ModelAdvisor.Text
![]() | ModelAdvisor.ListViewParameter | ModelAdvisor.Root | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |