reading a special sheet of an EXCEL file with knowing the row numbers of that

1 回表示 (過去 30 日間)
does anyone know how matlab can read a special sheet of an excel file with knowing only row numbers of that sheet? for example one excel file have 4 sheets and one of that sheets has more than 500 rows( we don't know how many rows there are exactly) and only 2 columns exactly. now its needed matlab to read this sheet.

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 9 月 15 日
use [Num,Txt,Raw]=xlsread(ExcelFile,SheetName)
then size(Raw) will tell you how many rows and columns of data are in that sheet.
  5 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 9 月 15 日
Then use [Num,Txt,Raw]=xlsread(ExcelFile,4), assuming it is always the 4th sheet.
mohammad
mohammad 2011 年 9 月 15 日
perfect that's right. its always the 3th sheet

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

その他の回答 (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