MATLAB: MATLAB code error clarification

no arguments passed in when they're requiredwhy is that a problem?

Can anyone explain the error quoted below?
>> CalcMeasures
Not enough input arguments.
Error in CalcMeasures (line 3)
if size(Y,2) ~= 1

Best Answer

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.