This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

lookfor

Search for keyword in all help entries

Syntax

lookfor keyword
lookfor keyword -all

Description

example

lookfor keyword searches for the specified keyword in the first comment line (the H1 line) of the help text in all MATLAB® program files found on the search path. For all files in which a match occurs, lookfor displays the H1 line.

lookfor is useful if you are searching for a function and you do not know its name. To find a function whose name you already know, use the what and which functions, which run much faster.

example

lookfor keyword -all searches the entire first comment block of a MATLAB program file.

Examples

collapse all

Search for the word literal in the H1 line of the help text for all MATLAB program files.

lookfor inverse
invhilb                        - Inverse Hilbert matrix.
ipermute                       - Inverse permute array dimensions.
dramadah                       - Matrix of zeros and ones with large determinant or inverse.
invhess                        - Inverse of an upper Hessenberg matrix.
betaincinv                     - Inverse incomplete beta function.
...

Search for the word literal in all of the help text for all MATLAB program files.

lookfor inverse -all
bsxfun:                 @atan2	        Four-quadrant inverse tangent; result in radians
bsxfun:                 @atan2d	        Four-quadrant inverse tangent; result in dgrees

gallery:     dramadah    Matrix of ones and zeroes whose inverse has large integer entries.
gallery:     invhess     Inverse of an upper Hessenberg matrix.

hilb:     calculates the exact inverse.

invhilb: Inverse Hilbert matrix.
invhilb:     IH = INVHILB(N) is the inverse of the N-by-N matrix with elements

ipermute: Inverse permute array dimensions.
ipermute:     A = IPERMUTE(B,ORDER) is the inverse of permute.  IPERMUTE rearranges
...

Input Arguments

collapse all

Keyword to search for, specified as a character vector or string scalar.

Alternative Functionality

As an alternative to the lookfor command, use the find features in the Current Folder browser. For example, you can look for all occurrences of a specified word in all the MATLAB program files in the current folder and its subfolders. For more information, see Find Files and Folders.

To search the documentation, including third-party and custom documentation, use the docsearch function.

Introduced before R2006a