xlsread with linux

4 ビュー (過去 30 日間)
Sukram
Sukram 2012 年 5 月 11 日
is there no support for opening special worksheets from an xls file with linux?
>> m=xlsread('mysheed.xlsx','L2010');
Error using xlsreadXLSX>sheetNameToIndex (line 210)
Worksheet 'L2010' not found.
Error in xlsreadXLSX>getXLSXData (line 130)
sheetIndex = sheetNameToIndex(baseDir, sheet);
Error in xlsreadXLSX (line 9)
[sharedStrings, parsedSheetData, range] = getXLSXData(file, sheet, range);
Error in xlsread (line 233)
[numericData, textData, rawData] = xlsreadXLSX(file, sheet, range);
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 5 月 11 日
Do you have a reference for what a "special worksheet" is in Excel ? Is 'L2010' supposed to be a flag indicating Excel 2010 compatibility or something like that?
Also, which version of MATLAB are you using?
Sukram
Sukram 2012 年 5 月 12 日
I mean this http://paste.osuv.de/index.php/hhtt2/ seperate worksheets in excel. I don't know if i use the correct word :)
MATLAB Version: 7.14.0.739 (R2012a)

サインインしてコメントする。

回答 (1 件)

Sukram
Sukram 2012 年 5 月 13 日
Calling it with int instead of string works fine
>> m=xlsread('sheet.xlsx',2);

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by