Friday, November 17, 2017

What Is Matlab Honour Function?

Matlab Find function

This pretty pocket-size Matlab business office perform dissimilar functioning on the matrix inwards Matlab. The major purpose of Matlab Find is used to honour indices as well as values of nonzero elements. Furthermore, the programmer uses these techniques to solve dissimilar complex operation.

Syntax exercise for find

k = find(X)
k = find(X,n)
k = find(X,n,direction)
[row,col] = find(....)
[row,col,v] = find(....)

Description


1) k = find(X) returns a vector containing the linear indices of each nonzero chemical cistron inwards array X.
   If X is a vector, as well as thus honour returns a vector amongst the same orientation equally X.
   If X is a multidimensional array, as well as thus honour returns a column vector of the linear indices of the result.
   If X contains no nonzero elements or is empty, as well as thus honour returns an empty array.

2) k = find(X,n) returns the commencement n indices corresponding to the nonzero elements inwards X.

3) k = find(X,n,direction), where management is 'last', finds the terminal n indices corresponding to nonzero elements inwards X. The default for management is 'first', which finds the commencement n indices corresponding to nonzero elements.

4) [row,col] = find(....) returns the row as well as column subscripts of each nonzero chemical cistron inwards array X using whatever of the input arguments inwards previous syntaxes

5) [row,col,v] = find(....) too returns vector v, which contains the nonzero elements of X.

Reference: https://www.mathworks.com

Don't forget to Share this post amongst your friends