How to get information about an sdpvar

44 views
Skip to first unread message

Mohamed Abdalmoaty

unread,
Feb 15, 2015, 11:28:25 AM2/15/15
to yal...@googlegroups.com
Since almost all MATLAB operator can be applied on sdpvar I have the following situation.
% define the variables
g = sdpvar(n,1);
h = sdpvar(n,1);
G = hanke(h);

If one tries to display the variable G in the workspace, we get: 
>> G
Linear matrix variable 10x10 (symmetric, real, 10 variables)

How can we know the sdpvars inside G?
In the above case it is composed out of the vector h.
Is there a way to know more information about G? Specially it is relation to other variables?

Johan Löfberg

unread,
Feb 15, 2015, 11:52:00 AM2/15/15
to yal...@googlegroups.com
getvariables(G)
getbase(G)
see(G)
Reply all
Reply to author
Forward
0 new messages