MATLAB code error clarification

16 ビュー (過去 30 日間)
Chethana Unni P
Chethana Unni P 2021 年 3 月 20 日
コメント済み: Image Analyst 2021 年 3 月 20 日
Can anyone explain the error quoted below?
>> CalcMeasures
Not enough input arguments.
Error in CalcMeasures (line 3)
if size(Y,2) ~= 1

採用された回答

Steven Lord
Steven Lord 2021 年 3 月 20 日
Your CalcMeasures function requires you to call it with at least one input argument. You called it with zero input arguments. Because of this MATLAB doesn't know on which data it should calculate the measures.
  2 件のコメント
Chethana Unni P
Chethana Unni P 2021 年 3 月 20 日
What does it mean by input arguments? Can you please explain with an example
Image Analyst
Image Analyst 2021 年 3 月 20 日
y = rand(5, 10);
CalcMeasures(y)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by