How can I determinate which is the last column of an excel file?
조회 수: 4 (최근 30일)
이전 댓글 표시
First of all, thanks for reading this. Well, I have an excel file with n variables (columns) and I have to read them with matlab, then I have to select one of them and do operations with that variable. Finally, I have to write/save that new variable in the same file, next to the last column used in that excel spreadsheet.
I doubt if I should use xlswrite, but I have to specify the column and the row where I want to "write" my new variable. I hope I had been explicit with my question. Greetings.
PD. If you could write parts of a code to be more explicit, I'll be grateful.
댓글 수: 1
dpb
2014년 6월 25일
Unless there's a method thru interacting w/ Excel, not sure there is a way to answer the question. You can find out how many columns have something in them by
size(raw,2)
after xlsread but that doesn't account for leading blank columns altho looks like gets intermediary ones filled in w/ NaN .
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!