659
edits
Carandraug (talk | contribs) |
Carandraug (talk | contribs) m (→do xxxx?: use lookfor as command) |
||
Line 420: | Line 420: | ||
You are probably looking for the function ''lookfor''. This function searches the help text of all functions for a specific string and returns a list of functions. Note that by default it will only search the first line of the help text (check ''help lookfor'' at the octave prompt for more). The following example helps to find the function to calculate correlation coefficient in a matrix: | You are probably looking for the function ''lookfor''. This function searches the help text of all functions for a specific string and returns a list of functions. Note that by default it will only search the first line of the help text (check ''help lookfor'' at the octave prompt for more). The following example helps to find the function to calculate correlation coefficient in a matrix: | ||
octave | octave> lookfor correlation | ||
corr2 Returns the correlation coefficient between I and J. | corr2 Returns the correlation coefficient between I and J. | ||
cor Compute correlation. | cor Compute correlation. | ||
Line 429: | Line 429: | ||
Also, there's a high chance that the function name has a suggestive name, and so you can try auto-completion to get some hints. For the previous example, typing ''corr'' at the octave promp followed by pressing [Tab] twice would suggest the following: | Also, there's a high chance that the function name has a suggestive name, and so you can try auto-completion to get some hints. For the previous example, typing ''corr'' at the octave promp followed by pressing [Tab] twice would suggest the following: | ||
octave | octave> corr | ||
corr2 corrcoef | corr2 corrcoef | ||