Mercurial > hg > octave-lyh
comparison scripts/strings/strmatch.m @ 11469:c776f063fefe
Overhaul m-script files to use common variable name between code and documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 12:41:21 -0800 |
parents | 7bb759d617e2 |
children | 1740012184f9 |
comparison
equal
deleted
inserted
replaced
11468:e1edf0ba3bcb | 11469:c776f063fefe |
---|---|
17 ## You should have received a copy of the GNU General Public License | 17 ## You should have received a copy of the GNU General Public License |
18 ## along with Octave; see the file COPYING. If not, see | 18 ## along with Octave; see the file COPYING. If not, see |
19 ## <http://www.gnu.org/licenses/>. | 19 ## <http://www.gnu.org/licenses/>. |
20 | 20 |
21 ## -*- texinfo -*- | 21 ## -*- texinfo -*- |
22 ## @deftypefn {Function File} {} strmatch (@var{s}, @var{a}, "exact") | 22 ## @deftypefn {Function File} {} strmatch (@var{s}, @var{A}, "exact") |
23 ## Return indices of entries of @var{a} that match the string @var{s}. | 23 ## Return indices of entries of @var{A} that match the string @var{s}. |
24 ## The second argument @var{a} may be a string matrix or a cell array of | 24 ## The second argument @var{A} may be a string matrix or a cell array of |
25 ## strings. If the third argument @code{"exact"} is not given, then | 25 ## strings. If the third argument @code{"exact"} is not given, then |
26 ## @var{s} only needs to match @var{a} up to the length of @var{s}. | 26 ## @var{s} only needs to match @var{A} up to the length of @var{s}. |
27 ## Trailing whitespace is ignored. | 27 ## Trailing whitespace is ignored. |
28 ## Results are returned as a column vector. | 28 ## Results are returned as a column vector. |
29 ## For example: | 29 ## For example: |
30 ## | 30 ## |
31 ## @example | 31 ## @example |