see

see displays the internal indicies and basis used in an sdpvar expression.

Syntax

see(x)

Examples

sdpvar variables are built-up from internal variable indicies (getvariables) and a basis (getbase). We can display these

yalmip('clear')
x = sdpvar(1);
y = sdpvar(1);
z = 1 + 2*x + 3*y + 4*x^2;

see(x)
Constant matrix
 
     0

Base matrices
 
     1

 
Used variables
 
     1
     
see(y)
Constant matrix
 
     0

Base matrices
 
     1

 
Used variables
 
     2

see(z) 
Constant matrix
 
     1

Base matrices
 
     2

 
     3

 
     4

 
Used variables
 
     1     2     3
     
see([5*x 6*y+7*x^2])
 
Constant matrix
 
     0     0

Base matrices
 
     5     0

 
     0     6

 
     0     7

 
Used variables
 
     1     2     3