how to compare two cell array
156 次查看(过去 30 天)
显示 更早的评论
code for comparing the values present in two cell array.
For example,
one cell array containing two columns with date as one column and time as other column.
The other cell array also looks the same as above.
Now I want to compare date and time column of one cell array with the other cell array which contains date and time column.
Kindly provide me the code.
Regards, M. Sarfudeen
1 个评论
José-Luis
2013-5-30
What have you tried so far? What problems have you encountered in your implementation?
回答(2 个)
Muruganandham Subramanian
2013-5-30
编辑:Muruganandham Subramanian
2013-5-30
e.g.
>> a = {'Dude', 'I', 'am', 'a', 'moose'};
>> b = {'Well', 'I', 'am', 'a', 'mouse'};
>> index = cellfun(@strcmp, a, b);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!