如题所述
>> a={'asda'asdas'werwe'reasd'} ; % 建立元胞数组\r\nid=ismember(a,'werwe') % 查找 \r\nid = \r\n 0 0 1 0 % 返回的索引值 \r\n>>a(id) % 取出找到的值\r\n\r\nans = \r\n 'werwe'
温馨提示:答案为网友推荐,仅供参考