Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

setEntries

Class: ModelAdvisor.Table
Package: ModelAdvisor

Set contents of table

Syntax

setEntries(content)

Description

setEntries(content) sets content of the table.

Input Arguments

content

A 2–D cell array containing the contents of the table. Each item of the cell array must be either a character vector 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);
Was this topic helpful?