Excel file generate function using import data error

6 vues (au cours des 30 derniers jours)
jose van der sanden
jose van der sanden le 8 Mar 2021
Commenté : Utkarsh Belwal le 11 Mar 2021
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 commentaire
Utkarsh Belwal
Utkarsh Belwal le 11 Mar 2021
Hi Jose,
Can you share the function definition of the import function that you are using?

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by