フィルターのクリア

I have 12 columns in excel that I want to import using one command.

1 回表示 (過去 30 日間)
Declan Simons
Declan Simons 2016 年 8 月 25 日
回答済み: Adam 2016 年 8 月 25 日
I am trying to import Columns B,C,F,G,J,K,N,O,R,S,X,Y with the range required of row 10 to 360010 and was looking to see if i could do this via a for loop.

採用された回答

Adam
Adam 2016 年 8 月 25 日
If it fits in memory you may be best loading in full range using e.g.
filename = 'someFile.xlsx';
xlRange = 'B10:Y360010';
res = xlsread( filename, xlRange );
since the help states that 'xlsread does not support non-contiguous ranges.' Then just delete those columns you don't want afterwards.
Otherwise as you say, it may be better to just load in only those columns you need using multiple xlsread instructions for any contiguous blocks you have.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by