Info

此问题已关闭。 请重新打开它进行编辑或回答。

Importing data and text from a file

1 次查看(过去 30 天)
Sven Svensson
Sven Svensson 2014-9-20
关闭: MATLAB Answer Bot 2021-8-20
I am trying to adapt the first line of a script (copied below) that was compatible on my old PC. Since I am no longer able to use xlsread with my new MAC OS X, I am looking for an alternative way to reach the same goal, so both 'data' and 'text' could be imported separately. The next step would be to use the data for calculations and linear regressions.
[data,text] = xlsread('filename.xlsx'); %need to adapt this line??
[data,i] = sortrows(data,[1]);
text=text(2:end,:);
text=text(i,:);
  1 个评论
dpb
dpb 2014-9-20
According to my doc's looks like 'basic' mode should read a .xlsx file with no additional arguments but to read the given worksheet? Does it not function that way now?
Other than that, knowing nothing of Mac, would seem need to store in some other format than Excel or use a 3rd party reader or somesuch???

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by