blob: 14a14162ad584c4d4f5d38450acb39d3953ea85b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Test file for "nonzero" function for the data types double, float, double complex, uint16
function nonzero()
a=[12,4,4; 12,51,6] // double array
disp(nnz(a))
b=0 //double scalar
disp(nnz(b))
f= float(a) //float array
disp(nnz(f))
z=%i*2+0 // doubleComplex scalar
disp(nnz(z))
endfunction
|