フィルターのクリア

MATLAB error for input arguments of type char

42 ビュー (過去 30 日間)
Robert
Robert 2013 年 4 月 22 日
コメント済み: Mohammed Hammouda 2021 年 3 月 17 日
??? 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?

回答 (5 件)

Kyle Savidge
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.
  1 件のコメント
Mohammed Hammouda
Mohammed Hammouda 2021 年 3 月 17 日
Thanks.. Really helped here! Thanks again.

サインインしてコメントする。


Walter Roberson
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.

Robert
Robert 2013 年 4 月 22 日
My Lab teacher wrote this program for us... what should I use instead of this?
  1 件のコメント
Walter Roberson
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
Robert 2013 年 4 月 22 日
instead of LoadDataFile that is

Robert
Robert 2013 年 4 月 22 日
I think I understand. This could be possibly be a separate m file right?
  1 件のコメント
Walter Roberson
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 ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by