Import excel data with Generate Function

2 ビュー (過去 30 日間)
Tom Bedkowski
Tom Bedkowski 2019 年 3 月 23 日
コメント済み: Tom Bedkowski 2019 年 3 月 24 日
Hello,
if i open an excel data (.xls) with matlab and chose in Import Selection Generate Function i get a function which i cant directly use.
The function head looks like this
function NT = importfile(workbookFile, sheetName, startRow, endRow)
When i will start the function i get this error
Undefined function or variable 'workbookFile'.
Error in TestSkript (line 12)
NT=importfile(workbookFile, sheetName, startRow, endRow);
So i dont know what is the workbookFile.
  2 件のコメント
dpb
dpb 2019 年 3 月 23 日
The file you want to open...then, unless the function is written to handle variable number of input arguments, you'll also have to pass the other argument values as well...
Tom Bedkowski
Tom Bedkowski 2019 年 3 月 24 日
Thank you,
an example for this would be
NT=importfile('File.xls', 'Tabelle1', 7, 17371);

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

回答 (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