Help CenterHelp Center
showvar
(Not recommended) Display optimization variable
showvar(var)
showvar is not recommended. Use show instead.
show
example
showvar(var) displays the optimization variable var at the Command Window.
var
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) ]
OptimizationVariable
Optimization variable, specified as an OptimizationVariable object. Create var using optimvar.
optimvar
Example: var = optimvar('var',4,6)
var = optimvar('var',4,6)
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.
optimvar | OptimizationVariable | show | write
write
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office