Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Code Matlab => Scilab > Equivalences Matlab -> Scilab > F > find (Matlab function)

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 great 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
<< filesep (Matlab function) F findstr (Matlab function) >>

Copyright (c) 2022-2024 (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 Feb 25 08:50:45 CET 2020