MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guida Utente Pagina 396

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 986
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 395
11 Functions – Alphabetical List
11-16
import mlreportgen.dom.*;
d = Document('mydoc','html');
ol = OrderedList({'first step' 'second step' 'last step'});
append(d,ol);
close(d);
rptview('mydoc','html');
Specify a Style for Appended Text
Use the Word Title style for the text.
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'This Is a Title','Title');
close(d);
rptview('mydoc','docx');
Append a Cell Array as a Table
import mlreportgen.dom.*;
d = Document('mydoc');
table = append(d,{'row 1 - col 1' 'row 1 - col 2';...
'row 2 - col 1' 'row 2 - col 2'});
table.Style = {Border('double'),ColSep('solid'),RowSep('solid')};
close(d);
rptview('mydoc','html');
“Add Content to a Report”
Input Arguments
docObj — Document to append content to
mlreportgen.dom.Document object
Document to append content to, specified as an mlreportgen.dom.Document object.
textContent — Text to append to document
string
Text to append to document.
Vedere la pagina 395
1 2 ... 391 392 393 394 395 396 397 398 399 400 401 ... 985 986

Commenti su questo manuale

Nessun commento