Is it possible to read xls files in matlab where different data types is in the same row?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I am currently working on a project where I need to analyze vast amounts of data collected from a measuring machine. The data is collected in a CSV file where each row represents different data points (length, xyz coordinates, etc.); unfortunately, when the data is exported from the measuring machine, multiple tables are created and placed below each other (see attached picture), where it's not possible to alter where each table is placed and unfeasible to manually move each table for every file. I was therefore wondering if theres any way to deal with this issue and read the data points until an empty row is encountered without the use of any loops or if conditions?

댓글 수: 0
답변 (1개)
Cris LaPierre
2024년 9월 25일
To answer the question asked in your post, it depends what you want the final output to be. If you want to read each table separately, then I don't know of an automated way to do that. If you want to read the entire sheet, skipping empty rows (essentially merage all the tables into a single table), then look into these options for readtable:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!