showvar
(Not recommended) Display optimization variable
Syntax
Description
showvar
is not recommended. Use show
instead.
Examples
Display Optimization Variable
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
var
— Optimization variable
OptimizationVariable
object
Optimization variable, specified as an OptimizationVariable
object. Create var
using optimvar
.
Example: var = optimvar('var',4,6)
Version History
Introduced in R2017bR2019b: showvar
is not recommended
The showvar
function is not recommended. Instead, use show
. The
show
function replaces showvar
and many
other problem-based functions.
There are no plans to remove showvar
at this time.
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)