matlab lookfor函数语法

发表matlab lookfor函数相关文章
一句话说明: Search for keyword in all help entries

lookfor

Search for keyword in all help entries

Alternatives

As an alternative to the lookfor function, use the Function Browser.

Syntax

lookfor topic
lookfor topic -all

Description

lookfor topic searches for the string topic 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 topic -all searches the entire first comment block of a MATLAB program file looking for topic.

Examples

For example:

lookfor inverse

finds at least a dozen matches, including H1 lines containing "inverse hyperbolic cosine," "two-dimensional inverse FFT," and "pseudoinverse." Contrast this with

which inverse 

or

what inverse

These functions run more quickly, but probably fail to find anything because MATLAB does not have a function inverse.

In summary, what lists the functions in a given folder, which finds the folder containing a given function or file, and lookfor finds all functions in all folders that might have something to do with a given keyword.

Even more extensive than the lookfor function are 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 Finding Files and Folders.

More About

See Also

| | | | | | | |

欢迎转载,转载请注明来自一手册:http://yishouce.com/matlab/func/lookfor

与matlab lookfor用法相关的文章

友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1