MATLAB code error clarification

조회 수: 18 (최근 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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by