Functions | |
endfunction | !assert (nonzeros([1, 2;3, 0]),[1;3;2])%!assert(nonzeros([1 |
endfunction | !assert (nonzeros(sparse([1, 2;3, 0])),[1;3;2])%!assert(nonzeros(sparse([1 |
Variables | |
function | t |
endif [i, j, t] = find (s) |
endfunction !assert | ( | nonzeros(sparse([1, 2;3, 0])) | ) |
endfunction !assert | ( | nonzeros([1, 2;3, 0]) | ) |
t |
Initial value:
nonzeros (s) if (nargin != 1) print_usage ()