| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
s = nonzeros(A)
s = nonzeros(A) returns a full column vector of the nonzero elements in A, ordered by columns.
This gives the s, but not the i and j, from [i,j,s] = find(A). Generally,
length(s) = nnz(A) <= nzmax(A) <= prod(size(A))
find, isa, nnz, nzmax, size, whos
![]() | noanimate | norm | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |