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
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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