Excel file generate function using import data error
6 次查看(过去 30 天)
显示 更早的评论
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
2021-3-11
Hi Jose,
Can you share the function definition of the import function that you are using?
回答(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!