MATLAB error for input arguments of type char
조회 수: 32 (최근 30일)
이전 댓글 표시
??? Undefined function or method 'LoadDataFile' for input arguments of type 'char'.
this keeps appearing every time I am running the code:
FileName=[GroupNamePartOfFileName FlywheelPartOfFileName int2str(InertiaVariant) PressurePartOfFileName int2str(pCase)];
DualYes=0; % data file is in dual format including errors in adjacent columns
[t,RPM]=LoadDataFile(SourceDirectory,FileName,FileExtension,DualYes);
any help as to why this is happening?
댓글 수: 0
답변 (5개)
Kyle Savidge
2018년 3월 12일
As a reference, I was hitting this error when using App Designer, although I had a routine with the same name and argument defined. The issue was that I was missing the first parameter (the "app" object I am working with).
Hopefully this information can be useful to others encountering this error within App Designer.
Walter Roberson
2013년 4월 22일
It occurs because you do not have a routine named LoadDataFile . MATLAB does not have a routine by that name.
댓글 수: 0
Robert
2013년 4월 22일
댓글 수: 1
Walter Roberson
2013년 4월 22일
Your lab teacher might have supplied a routine by that name. Or might be expecting you to write the routine.
Robert
2013년 4월 22일
댓글 수: 1
Walter Roberson
2013년 4월 22일
Yes.
Please do not use a new Answer for each thing you say. Click in the "Comment on this Answer" section to create a comment on an existing answer.
참고 항목
카테고리
Help Center 및 File Exchange에서 Files and Folders에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!