Extracting Data from file with varying columns
이전 댓글 표시
Hi all, Our system is capturing data continuously. Where first 14 columns are always stored in *.txt and *.log file. The 15th column is added only when the image is captured. So the data in file looks like following:

I am asking this question, because I was not successful after trying out importdata, readtable and all possible MATLAB answers. When the pointer comes to the 15th column data. It reads the value for e.g. (here 11) and store it to the next row instead in the same row. Also, the values read after that all are NaN.

It would great, If I am able to load the this data automatically. Using a self written function.
Thank you very much for the help and valuable suggestions in advance.
채택된 답변
추가 답변 (1개)
Ravindra
2018년 5월 22일
0 개 추천
댓글 수: 1
Ameer Hamza
2018년 5월 22일
Yes, I noted that after you uploaded the file and modified the answer.
카테고리
도움말 센터 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!