MATLAB Answers

Robert
0

MATLAB error for input arguments of type char

Asked by Robert
on 22 Apr 2013
??? 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

Products

No products are associated with this question.

4 Answers

Answer by 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


Answer by Robert
on 22 Apr 2013

My Lab teacher wrote this program for us... what should I use instead of this?

  1 Comment

Your lab teacher might have supplied a routine by that name. Or might be expecting you to write the routine.


Answer by Robert
on 22 Apr 2013

instead of LoadDataFile that is

  0 Comments


Answer by Robert
on 22 Apr 2013

I think I understand. This could be possibly be a separate m file right?

  1 Comment

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.


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!