how to read in unequal columns from an excel sheet
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello
I have an excel sheet with four column that are unequal in size
How would I read them into 4 matlab arrays?
Thank you
댓글 수: 4
Dyuman Joshi
2023년 9월 11일
"in realiy they might be in the hundrets"
Noted.
And what do you want to do with the different arrays? Do you want to perform some kind of operation/data manipulation on the them? or something else?
답변 (1개)
Walter Roberson
2023년 9월 11일
readtable() to read all entries together. Then take one variable at a time and trim off trailing empty entries.
Or possibly multiple readtable() or readmatrix() calls with 'Range' parameter indicating which column to read.
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!