using find function for char
이전 댓글 표시
line =
10 L1 L2 L5 C1 C2 P2 C5 S1 S2# / TYPES OF OBSERV
Name Size Bytes Class
line 1x81 162 char
%I need to use find function for each character in line. For example, I need to know which column is L1 or L2.
채택된 답변
추가 답변 (1개)
Michael Haderlein
2015년 4월 16일
line='10 L1 L2 L5 C1 C2 P2 C5 S1 S2';
strfind(line,'L2')
ans =
13
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!