文件名称:findStringInCell(C,S):此函数返回元胞数组 (C) 中字符串 (S) 的索引。-matlab开发
文件大小:2KB
文件格式:ZIP
更新时间:2024-06-18 12:09:28
matlab
功能说明: 此函数返回元胞数组 (C) 中字符串 (S) 的索引。 作者:须加藤雷 | 创建于:2017 年 5 月 18 日 | ray.sugato[at]gmail.com %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%% 如果您使用此代码,请承认作者%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%% 输入: C = 元胞数组S = 要查找的字符串输出: 索引 = 单元格中字符串的索引例子: 索引 = findStringCell(C,S); Index = findStringCell({'alpha','beta','x','z'},'beta'); % 这返回索引 = 2
【文件预览】:
findStringInCell.zip