MATLAB error for input arguments of type char
28 views (last 30 days)
Show older comments
??? 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 Comments
Answers (5)
Kyle Savidge
on 12 Mar 2018
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.
1 Comment
Walter Roberson
on 22 Apr 2013
It occurs because you do not have a routine named LoadDataFile . MATLAB does not have a routine by that name.
0 Comments
Robert
on 22 Apr 2013
1 Comment
Walter Roberson
on 22 Apr 2013
Your lab teacher might have supplied a routine by that name. Or might be expecting you to write the routine.
Robert
on 22 Apr 2013
1 Comment
Walter Roberson
on 22 Apr 2013
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.
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!