6 lines
135 B
Mathematica
6 lines
135 B
Mathematica
|
|
function anys = any(x)
|
||
|
|
%ANY (overloaded)
|
||
|
|
|
||
|
|
x_base = x.basis;
|
||
|
|
anys = full(sum(abs(x.basis),2)>0);
|
||
|
|
anys = reshape(anys,x.dim(1),x.dim(2));
|