MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Podręcznik Użytkownika Strona 476

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 986
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 475
11 Functions – Alphabetical List
11-96
mlreportgen.dom.TableRow.append
Package: mlreportgen.dom
Append content to table row
Syntax
entryOut = append(rowObj,entryObj)
Description
entryOut = append(rowObj,entryObj) appends an entry to a table row.
Examples
Append a Table Entry to a Row
Create a two-column table.
import mlreportgen.dom.*;
myReport = Document('myDoc','html');
table = Table(2);
table.Style = {Border('solid'),RowSep('solid'),ColSep('solid')};
table.TableEntriesStyle = {Width('2in'),HAlign('center')};
Create three table rows with entries. Append each entry to a row using
append(row,te).
for i=1:3
row = TableRow();
te = TableEntry();
append(te,Text([num2str(i) ' - 1']));
append(row,te);
te = TableEntry();
append(te,Text([num2str(i) ' - 2']));
append(row,te);
append(table,row);
Przeglądanie stron 475
1 2 ... 471 472 473 474 475 476 477 478 479 480 481 ... 985 986

Komentarze do niniejszej Instrukcji

Brak uwag