MATLAB code error clarification

17 visualizaciones (últimos 30 días)
Chethana Unni P
Chethana Unni P el 20 de Mzo. de 2021
Comentada: Image Analyst el 20 de Mzo. de 2021
Can anyone explain the error quoted below?
>> CalcMeasures
Not enough input arguments.
Error in CalcMeasures (line 3)
if size(Y,2) ~= 1

Respuesta aceptada

Steven Lord
Steven Lord el 20 de Mzo. de 2021
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 comentarios
Chethana Unni P
Chethana Unni P el 20 de Mzo. de 2021
What does it mean by input arguments? Can you please explain with an example
Image Analyst
Image Analyst el 20 de Mzo. de 2021
y = rand(5, 10);
CalcMeasures(y)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by