how to compare a string variable with a string?
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi How to compare string variable with a string?
댓글 수: 0
채택된 답변
추가 답변 (1개)
SRI
2014년 6월 18일
for example
inputData = 'Example';
outputData = strcmp(inputData,'Example');
If outputData = 1 means both the data are equal if 0 means it is not equal
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!