Separate one column in an imported matrix
이전 댓글 표시
Hello,
Basically, I have a table where the last column really has several values. The number of these values differ. What I would like is to import the data so that it is all in a matrix and instead of one column showing points, you have a subsequent series of columns from (point one) to (point n). It is fine to fill zeros so that every row has the same number of vectors. I attached a portion of my data sheet. MatLab tries to sum or multiply these values when importing; I took a first pass at trying to use textscan and splitcells and other things I saw on the forum but I cannot get it to run correctly. Anyone know the easiest way to do this? I said C=textscan(segments1,'%f') and got that the first input must be a valid file-id or non-empty character vector.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!