Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - 日本語


find (Matlab function)

Find indices and values of nonzero elements

Matlab/Scilab equivalent

Matlab Scilab

Particular cases

Matlab function can work with complex values what is not possible in Scilab, however, using abs it is very easy to have the same results.

Note that Scilab function can only return two output values and Matlab one can return a third value that can be computed according to the first two output matrices as explained in Matlab help.

For example, in [i,j,v]=find(X), v is equal to: X(i+(j-1))*size(X,1).

Another difference between Scilab and Matlab is that Matlab returns column vectors of indices when X is a column vector or a matrix but Scilab always returns row vectors. For this kind of input, use matrix to get the same output value...what is done mtlb_find()

Report an issue
<< fileparts (Matlab function) F findstr (Matlab function) >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Mar 07 09:29:07 CET 2023