This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

showvar

Display optimization variable

Syntax

showvar(var)

Description

example

showvar(var) displays the optimization variable var at the Command Window.

Examples

collapse all

Create an optimization variable and display it.

var = optimvar('var',8,3,'Type','integer');
showvar(var)
    [ var(1, 1)    var(1, 2)    var(1, 3) ]
    [ var(2, 1)    var(2, 2)    var(2, 3) ]
    [ var(3, 1)    var(3, 2)    var(3, 3) ]
    [ var(4, 1)    var(4, 2)    var(4, 3) ]
    [ var(5, 1)    var(5, 2)    var(5, 3) ]
    [ var(6, 1)    var(6, 2)    var(6, 3) ]
    [ var(7, 1)    var(7, 2)    var(7, 3) ]
    [ var(8, 1)    var(8, 2)    var(8, 3) ]

Input Arguments

collapse all

Optimization variable, specified as an OptimizationVariable object. Create var using optimvar.

Example: var = optimvar('var',4,6)

Introduced in R2017b