Documentation Center

  • Trial Software
  • Product Updates

setEntries

Class: ModelAdvisor.Table
Package: ModelAdvisor

Set contents of table

Syntax

setEntries(content)

Description

setEntries(content)

Input Arguments

content

A 2–D cell array containing the contents of the table. Each item of the cell array must be either a string or an instance of ModelAdvisor.Element. The size of the cell array must be equal to the size of the table specified in the ModelAdvisor.Table constructor.

Examples

table = ModelAdvisor.Table(4,3); 
contents = cell(4,3); % 4 by 3 table 
for k=1:4 
    for m=1:3 
      contents{k,m} = ['Contents for row-' num2str(k) ' column-' num2str(m)]; 
    end 
end 
table.setEntries(contents);

See Also

How To

Was this topic helpful?