Groups
Groups
Sign in
Groups
Groups
YALMIP
Conversations
Labels
About
Send feedback
Help
Error creating an overloaded zero matrix
18 views
sdpvar
yalmip
Skip to first unread message
optimizer
unread,
Apr 11, 2020, 3:41:46 AM
4/11/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to YALMIP
Dear Prof.Lofberg,
I am trying to create a zeros matrix with sdpvar elements, as shown here:
https://yalmip.github.io/command/zeros/
.
y = sdpvar(1,1);
X = zeros(5,5,'like',sdpvar);
X(1,5) = y;
However I get this error:
Error using zeros
Input following 'like' is not a numeric or logical array.
Suggestions?
Johan Löfberg
unread,
Apr 11, 2020, 4:04:13 AM
4/11/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to YALMIP
Your matlab version is too old
optimizer
unread,
Apr 11, 2020, 4:06:22 AM
4/11/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to YALMIP
I am running matlab 2017b, which version should i have at least?
Johan Löfberg
unread,
Apr 11, 2020, 4:09:37 AM
4/11/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to YALMIP
Don't know
Reply all
Reply to author
Forward
0 new messages