Importing data from excel, getting zeros

Hi, I am importing selected columns to Matlab from excel and all works fine except the last two rows in the column appear as 0 in Matlab. They're in the same format as the rest of the column. Has anyone had that issue? Thanks a lot.

댓글 수: 5

Walter Roberson
Walter Roberson 2017년 11월 15일
If your file is not sensitive, could you attach a subset of it for testing?
Adam Kepinski
Adam Kepinski 2017년 11월 15일
Hey, thanks for the answer. I've attached the file. The arrays in question are o2:o35 and P2:P35. Original file was in xslx format but I can't attach it here.
Walter Roberson
Walter Roberson 2017년 11월 15일
Could you zip the xlsx and attach that?
Adam Kepinski
Adam Kepinski 2017년 11월 15일
Sure. As a side note I am using a Mac
Walter Roberson
Walter Roberson 2017년 11월 15일
Using that xlsx file I am not observing any difficulty using R2017b on Mac (El Capitan)

댓글을 달려면 로그인하십시오.

답변 (1개)

Adam Kepinski
Adam Kepinski 2017년 11월 15일

0 개 추천

I managed to run it. Restarted Matlab and copied the two col's into a different place on the spreadsheet. Still doesn't work if the columns are in the "old" place. Really bizarre.
Thanks a lot for your help!

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

질문:

2017년 11월 15일

답변:

2017년 11월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by