a diagonal matrix with

51 views
Skip to first unread message

Sehli Naima

unread,
Jun 19, 2018, 2:46:09 PM6/19/18
to YALMIP
Hello, 
How can I define a diagonal matrix by blocs such as: 

 M1 =sdpvar(3,3) and M2=sdpvar(3,3) ==> M=diag(M1,M2) (size 6*6) ? 

Thank you .

Johan Löfberg

unread,
Jun 19, 2018, 4:49:01 PM6/19/18
to yal...@googlegroups.com
blkdiag(M1,M2)  or [M1 zeros(3);zeros(3) M2], standard MATLAB
Reply all
Reply to author
Forward
0 new messages