Get Numeric Values out of Text File
조회 수: 4 (최근 30일)
이전 댓글 표시
I have the .txt file above, which I am trying to extract numeric values from. For example, I would like to extract just the numeric value from line 2 to say time = 5723. Or extract the numeric value from line 4 to say layerheight = 0.2. I am having a lot of issues with data types, where I can only bring in lines as a string. Then, they come up as a cell array, which I cannot seem to get the numerical value out of. Any help would be greatly appreciated.
댓글 수: 0
답변 (1개)
Alex Alex
2021년 1월 29일
look here about "ZIP codes", maybe help https://www.mathworks.com/help/matlab/ref/extract.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!