5 lines
53 B
Scilab
5 lines
53 B
Scilab
|
function y=nonzeros(x);
|
||
|
x=x(:);
|
||
|
k = find(x);
|
||
|
y=x(k);
|