I can not define "constraint". Is this the compatibility problem?

175 views
Skip to first unread message

Yu Yang

unread,
Oct 1, 2013, 5:11:23 PM10/1/13
to yal...@googlegroups.com
Hi,
 
    I am forced to use the MATLAB 2013b(64bit) by the university, so I don't know if my problem is due to the compatibility.
 
    When I follow the instruction part to define the constraint:
 
     x_premium=sdpvar(10,1)
    
     Constraint=[x_premium>=0]
 
   an error information comes out:

    Error using table (line 281)
    Wrong number of arguments.
 

    Error in lmi/display (line 120)
    table('',headers,data)

    Error in constraint/display (line 3)
    display(set(X));

    Caused by:
      You may have intended to create a table with one row from one or more variables that are character strings.
      Consider using cell arrays of strings rather than character arrays. Alternatively, create a cell array with one
      row, and convert that to a table using CELL2TABLE.
 
    I would really appreciate if anybody can figure it out and help me to solve this simple problem!  Many thanks.
 
Regards,
 
Yu  
 

Johan Löfberg

unread,
Oct 2, 2013, 1:43:48 AM10/2/13
to yal...@googlegroups.com
See here

Simply put a ; after your constraint definitions so that the display code isn't run (only yalmiptest, display and checkset are affected by this bug)

or wait for a patched version (hopefully I remember to release it today)

Johan Löfberg

unread,
Oct 2, 2013, 8:04:46 AM10/2/13
to yal...@googlegroups.com
New release fixes this issue.

Yu Yang

unread,
Oct 2, 2013, 10:35:52 AM10/2/13
to yal...@googlegroups.com
Dear Johan,
 
    Thanks a lot! 
   
    I have tested it. Everything goes well now!  I have the greatest respect to your work and your kind help to the entire research community.
 
Best regards,
 
Yu
Reply all
Reply to author
Forward
0 new messages