Code covered by the BSD License  

Highlights from
string lookup

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.53 KB File ID: #24032

string lookup

by Phillip M. Feldman

 

07 May 2009

lookup(c, str) compares the string in str against each element of the cell array c

| Watch this File

File Information
Description

OVERVIEW

lookup(c, str) compares the string in str against each element of the cell array c in turn. If str is found in any element of c, the index of the first such element is returned. Otherwise, the value zero is returned.

INPUTS

c: A one-dimensional cell-array. Each element of this cell array is either a character string, or another one-dimensional cell-array containing character strings. Note: Deeper nesting of cell arrays is not supported.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
lookup Phillip M. Feldman 08 May 2009 10:11:30
string matching Phillip M. Feldman 08 May 2009 10:11:30
string comparison Phillip M. Feldman 08 May 2009 10:11:30
cell arrays Phillip M. Feldman 08 May 2009 10:11:30
cell arrays of strings Phillip M. Feldman 08 May 2009 10:11:30
string lookup Phillip M. Feldman 08 May 2009 10:11:30

Contact us at files@mathworks.com