string lookup
版本 1.0.0.0 (1.5 KB) 作者:
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.
引用格式
Phillip M. Feldman (2024). string lookup (https://www.mathworks.com/matlabcentral/fileexchange/24032-string-lookup), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2008b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Characters and Strings 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |