Returns the non-zero elements in a matrix.
c = nz(a)Legacy name: nonzeros
Array of any dimension.
Non-zero elements of a. c is the same dimension as a reduced by one.
A = [1, 2, 3; 0, 0, 0; 0, 2, 3]; C = nz(A)
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices