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.

setColWidth

Class: ModelAdvisor.Table
Package: ModelAdvisor

Specify column widths

Syntax

setColWidth(table, column, width)

Description

setColWidth(table, column, width) specifies the column.

The setColWidth method specifies the table column widths relative to the entire table width. If column widths are [1 2 3], the second column is twice the width of the first column, and the third column is three times the width of the first column. Unspecified columns have a default width of 1. For example:

setColWidth(1, 1);
setColWidth(3, 2);
specifies [1 1 2] column widths.

Input Arguments

table

Instantiation of the ModelAdvisor.Table class

column

An integer specifying column number

width

An integer or array of integers specifying the column widths, relative to the entire table width

Examples

table1 = ModelAdvisor.Table(2, 3)
setColWidth(table1, 1, 1);
setColWidth(table1, 3, 2);
Was this topic helpful?