5 lines
89 B
Mathematica
5 lines
89 B
Mathematica
|
|
function X = abs(X)
|
||
|
|
%ABS (overloaded)
|
||
|
|
|
||
|
|
X = reshape(abs(reshape(X,prod(X.dim),1)),X.dim);
|