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 ExchangeData 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