About 28,700,000 results
Open links in new tab
  1. find - Find indices and values of nonzero elements - MATLAB

    Find indices and values of nonzero elements. If X is a multidimensional array, then find returns a column vector of the linear indices of the result. k = find(X,n,direction), where direction is 'last', finds the last n indices corresponding to nonzero elements in X.

  2. Find() function in MATLAB - GeeksforGeeks

    Nov 1, 2022 · The find() function in MATLAB is used to find the indices and values of non-zero elements or the elements which satisfy a given condition. The relational expression can be used in conjunction with find to find the indices of elements that meet the given condition.

  3. find - MathWorks

    To find array elements that meet a condition, use find in conjunction with a relational expression. For example, find(X<5) returns the linear indices to the elements in X that are less than 5. To directly find the elements in X that satisfy the condition X<5, use X(X<5).

  4. Find index with multiple condition, using find function - MATLAB

    Sep 21, 2016 · Write each of your conditions as separate logical arrays. When you need to index, combine those individual conditions with and, or, not, etc.

  5. The find () Function in MATLAB - Delft Stack

    Feb 14, 2024 · The find() function in MATLAB is used to locate the indices of non-zero elements in an array or matrix. It is a versatile function that can be applied to vectors, matrices, and multidimensional arrays.

  6. How to Find Index of Element in Array in MATLAB?

    Jul 4, 2021 · MATLAB provides functionality that finds the indices and values of all non-zero elements in a vector or multidimensional array; the find() function. The find function with required parameters gives back a vector containing indices of non-zero elements in the passed array/vector. Syntax: vec = [] %so

  7. find (MATLAB Functions) - Northwestern University

    find. Find indices and values of nonzero elements. Syntax. k = find(x) [i,j] = find(X) [i,j,v] = find(X) Description. k = find(X) returns the indices of the array X that point to nonzero elements. If none is found, find returns an empty matrix. [i,j] = find(X) returns the row and column indices of the nonzero entries in the matrix X. This is ...

  8. Find Function Matlab | Description of Find in Matlab with

    Mar 24, 2023 · MATLAB provides its user with a basket of functions, in this article we will understand a powerful function called ‘Find’. In its simplest form, find function will return the indices of array X that points to the nonzero elements. If it finds none, the …

  9. Demystifying MATLAB‘s Find() Function: A Beginner‘s Guide

    Dec 27, 2023 · In this guide, you‘ve explored common applications and examples of harnessing MATLAB‘s find() function to search arrays, filter data based on conditions, extract multidimensional indices, identify non-empty cells in cell arrays, and related techniques.

  10. How to use 'find' function in matlab - MATLAB Answers

    Mar 28, 2017 · In the below code, We have a random population with structures Position (3D array) and Cost. I need to check whether a particular element present in the population If it does then I want to remove it from the population. I'm using 'find' function for doing it. It was working fine with arrays but with structures I'm getting error below error.

  11. Some results have been removed
Refresh