Dynamic-Calibration/utils/YALMIP-master/extras/@ndsdpvar/is.m

13 lines
305 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function YESNO = is(X,property,additional)
%IS Check property of variable.
% d = IS(x,property) returns 1 if 'property' holds
%
% Properties possible to test are: 'complex'
switch property
case 'complex'
YESNO = ~isreal(X.basis);
otherwise
error('Wrong input argument.');
end