Excel file generate function using import data error

6 visualizaciones (últimos 30 días)
jose van der sanden
jose van der sanden el 8 de Mzo. de 2021
Comentada: Utkarsh Belwal el 11 de Mzo. de 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 comentario
Utkarsh Belwal
Utkarsh Belwal el 11 de Mzo. de 2021
Hi Jose,
Can you share the function definition of the import function that you are using?

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by