Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

seqmatch

Find matches for every character vector in library

Syntax

Index = seqmatch(keyword, Library)

Description

Index = seqmatch(keyword, Library) looks through Library to find character vectors that begin with keyword. Index contains the index to the first occurrence for every character vector in the query. keyword and Library must be cell arrays of character vectors.

Examples

lib = {'VIPS_HUMAN', 'SCCR_RABIT', 'CALR_PIG' ,'VIPR_RAT', 'PACR_MOUSE'};
query = {'CALR','VIP'};
h = seqmatch(query,lib);
lib(h) 
ans = 

    'CALR_PIG'    'VIPS_HUMAN'

See Also

|

Introduced before R2006a

Was this topic helpful?