User`s guide
Create Callback Functions and Results
25-47
table1.setRowHeading(n, ['Row ', num2str(n)]);
end
% set Table content
for rowIndex=1:5
for colIndex=1:5
table1.setEntry(rowIndex, colIndex, ...
num2str(matrixData(rowIndex, colIndex)));
% set alignment of entries in second row
if colIndex == 2
table1.setEntryAlign(rowIndex, colIndex, 'center');
end
end
end
% overwrite content of cell 3,3 with a ModelAdvisor.Text
text = ModelAdvisor.Text('Example Text');
table1.setEntry(3,3, text)
Format Paragraphs
You must handle paragraphs explicitly because most markup languages do not support
line breaks. The default paragraph formatting is:
• Empty
• Default color (black)
• Unformatted, (not bold, italicized, underlined, linked, subscripted, or superscripted)
• Aligned left
If you want to change paragraph formatting, use the ModelAdvisor.Paragraph class.
Formatted Output
The following is the example from “Simple Check Callback Function” on page 25-38,
reformatted using the Model Advisor Formatting API.