string lookup
Version 1.0.0.0 (1.53 KB) by
Phillip M. Feldman
lookup(c, str) compares the string in str against each element of the cell array c
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.
Cite As
Phillip M. Feldman (2026). string lookup (https://in.mathworks.com/matlabcentral/fileexchange/24032-string-lookup), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Characters and Strings in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
