Home > freetb4matlab > strings > rindex.m

rindex

PURPOSE ^

% Return the position of the last occurrence of the character string

SYNOPSIS ^

function n = rindex (s, t)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} rindex (@var{s}, @var{t})
% Return the position of the last occurrence of the character string
% @var{t} in the character string @var{s}, or 0 if no occurrence is
% found.  For example,
%
% @example
% @group
% rindex ('Teststring', 't')
%      @result{} 6
% @end group
% @end example
%
% @strong{Caution:}  This function does not work for arrays of
% character strings.
% @seealso{find, index}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003