Value associate to a parameter in a text
조회 수: 1 (최근 30일)
이전 댓글 표시
채택된 답변
Paolo
2018년 7월 9일
편집: Paolo
2018년 7월 9일
data = fileread('mytextfile.txt');
val = regexp(data,'(?<=\s)(-?\d*\.?\d*)(?=\s|$)','match');
댓글 수: 7
Paolo
2018년 7월 9일
That's right, you will need to use the greedy * quantifier rather than the + quantifier. Since you need to match those values too, use:
(?<=KUTY01\s)-?\d*\.?\d*
I'll update my answer.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Data Preparation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!