Excel file generate function using import data error

조회 수: 6 (최근 30일)
jose van der sanden
jose van der sanden 2021년 3월 8일
댓글: Utkarsh Belwal 2021년 3월 11일
Hi,
I'm very new to Matlab and have to use the import data generate function to import an excel file with multiple sheets.
However when I try to create this function it comes up with a long function and when I run it, I receive an error:
Not enough input arguments.
Error in importfile3 (line 25);
if nargin == 1 || isempty(sheetName)
This is the beginning of the script:
%% Input handling
% If no sheet is specified, read first sheet
if nargin == 1 || isempty(sheetName)
sheetName = 1;
end
% If row start and end points are not specified, define defaults
if nargin <= 2
dataLines = [3, 22];
end
I have no idea how to fix this problem and could really use some help.
  댓글 수: 1
Utkarsh Belwal
Utkarsh Belwal 2021년 3월 11일
Hi Jose,
Can you share the function definition of the import function that you are using?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by