Import excel data with Generate Function
조회 수: 2 (최근 30일)
이전 댓글 표시
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
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...
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!