how to compare two cell array
조회 수: 117 (최근 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!