Dynamic-Calibration/utils/YALMIP-master/extras/@ncvar/uplus.m

17 lines
258 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function Z = uplus(Y)
%UPLUS (overloaded)
if isa(Y,'blkvar')
Y = sdpvar(Y);
end
switch Y.typeflag
case {0,5}
Z = Y;
case {1,3,4}
error('Relational objects canot be manipulated')
otherwise
error('Please report internal bug in sdpvar/uplus')
end