Dynamic-Calibration/utils/YALMIP-master/@sdpvar/any.m

9 lines
214 B
Mathematica
Raw Permalink Normal View History

2019-12-18 11:25:45 +00:00
function anys = any(x)
%ANY (overloaded)
% Author Johan L<EFBFBD>fberg
% $Id: any.m,v 1.2 2006-07-26 20:17:57 joloef Exp $
x_base = x.basis;
anys = full(sum(abs(x.basis),2)>0);
anys = reshape(anys,x.dim(1),x.dim(2));