MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guida Utente Pagina 623

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 674
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 622
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.
Vedere la pagina 622
1 2 ... 618 619 620 621 622 623 624 625 626 627 628 ... 673 674

Commenti su questo manuale

Nessun commento