string compare of numbers and strings
조회 수: 2 (최근 30일)
이전 댓글 표시
i have two variables(suppose a and b) which is an array of numbers as well as strings. I want to compare a and b, and my output should be a logical array of same size as a and b.
댓글 수: 0
답변 (1개)
Kate
2015년 10월 28일
Could you show us some sample data? Off the top of my head I think you need to use strcmp and/or ismember
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!