659
edits
m (→Pre-compiled binary packages: Corrected link to moved page) |
Carandraug (talk | contribs) (→How do I...?: do xxxx? using lookfor() and auto-complete to find a function name) |
||
Line 304: | Line 304: | ||
=How do I...?= | =How do I...?= | ||
==do xxxx?== | |||
You are probably looking for the function ''lookfor''. This function searches the help text of all functions for a specific string and returns the list of functions that have. By default only searches the first line of the help text of each so use '''help lookfor'' at the octave prompt to learn more. The following example helps to find the function to calculate correlation coefficient in a matrix | |||
octave:1> lookfor ("correlation") | |||
corr2 Returns the correlation coefficient between I and J. | |||
cor Compute correlation. | |||
corrcoef Compute correlation. | |||
spearman Compute Spearman's rank correlation coefficient RHO for each of the variables sp | |||
autocor Return the autocorrelations from lag 0 to H of vector X. | |||
Also, there's a high chance that the function name has a suggestive name 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:2> corr | |||
corr2 corrcoef | |||
==How do I erase a figure?== | ==How do I erase a figure?== | ||
Line 405: | Line 421: | ||
set(0, 'defaultfigurevisible', 'off'); | set(0, 'defaultfigurevisible', 'off'); | ||
=Common problems= | =Common problems= |