# The find function returns multiple locations

### Find function returns multiple positions

=SUBSTITUTE(TRIM(IFERROR(FIND(“you”,A1),””) &”” &IFERROR(FIND(“good”,A1),””)),””,””))

Dropdown

### matlab, how to find out a set of data close to a certain value of all the points, and output the location

1, the first thing you need to know matlab array to find close to a certain value of all the coordinates of the points, is to use the find function, you can in the command line window to enter help

find.

2, in the matlab command line window, enter a=[1

4

5;6

7

8;7

9

12] to create the a array.

3. Enter [m,n]=find(a==9) to find the coordinates of the a array equal to 9.

4, after pressing enter, you can see that there is one coordinate of a array of a equal to 9, which is row 3, column 2.

5, if equal to the value of more than one, will return more than one coordinate position.

### How to use MATLAB to find the desired value in the array and return the position in the array

matlabfind function is used to return the location of the desired element (the determination of the position: in the matrix, the first column, starting from the top, and then counting backward from the second column, the third column, and then counting backward)

find (A) returns the location of the non-zero element of matrix A

&gt&gt. , and then from the second column, the third column in order to count backwards)

find (A) to return to the matrix A non-zero elements of the location

>> A = [104-300086];

>> X = find (A)

X =

13489

find(A>5) returns the location of the elements of matrix A that are greater than 5

>>find(A>5)

ans=

89

[i,j,v]=find(A) returns the rows i, columns j, and the values of the elements of matrix A that have a nonzero element in them, and the values of the elements, v, (outputted in positional in order of location)

>>A=[320;-507;001];

>>[i,j,v]=find(A)

i=

1

2

1

2

3

j=

1

1

2

3

3

v=

3

-5

2

7

1

find(A>m,4) returns the location of the first four elements of the matrix A that have values greater than m< /p>

It is also their own understanding, if not correct, please correct! I hope I can help a little!