Hi, my MATLAB cannot use importfile function to import my header files. Here is the command below
Dx = importfile(hea(k).name, [16 16]);
it is showing me that error:
Error using importfile
Too many input arguments.
what can possibly be the reason to cause that error ?

댓글 수: 3

Walter Roberson
Walter Roberson 2020년 4월 23일
k is not a scalar so hea(k) refers to multiple locations
israa sharaby
israa sharaby 2020년 4월 23일
k is defined inside a for loop has a specific size, the previous command is also inside the loop
for k=1:1:TrainingData
load (mat(k).name);
XTrain(:,k) = mat2cell(val, 12, size(val,2));
Dx = importfile(hea(k).name, [16 16]);
Walter Roberson
Walter Roberson 2020년 4월 23일
importfile is generated code when you use the import tool (uiimport) and ask it to generate. The generated code depends on the kind of file that you were importing from, so the generated code does not always have the same number of parameters as it would if you had been generating for a different kind of file. You will need to examine the generated code to see what it expects.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

태그

질문:

2020년 4월 23일

댓글:

2020년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by