Florian Brunner
unread,Jun 24, 2013, 7:11:04 AM6/24/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yal...@googlegroups.com
Hello Johan,
I get strange errors when multiplying sdp-variables and numerical vectors in a certain order.
a=sdpvar(1,2);
(a*ones(2,1))*eye(2);
produces the error
Error using *
Inner matrix dimensions must agree.
Error in sdpvar/addrightfactor (line 4)
X.rightfactors{i} = X.rightfactors{i}*R;
Error in sdpvar/mtimes (line 495)
Z = addrightfactor(Z,Y);
However
a=sdpvar(2,1);
(ones(1,2)*a)*eye(2);
works fine.
Cheers,
Florian