Warning: Input arguments must be scalar.

64 visualizaciones (últimos 30 días)
namrata parikh
namrata parikh el 19 de Jun. de 2012
Comentada: Besim Sen el 9 de Jun. de 2021
X=zeros(1,m1);
when i run this command it gives me the Warning: Input arguments must be scalar. can anyone help me with what causes this problem and what i can do to solve it!!

Respuestas (2)

Image Analyst
Image Analyst el 19 de Jun. de 2012
Hover over m1 when you've stopped there at a breakpoint. Chances are m1 is either a real number with some fractional part, or a matrix, or a negative number, or some other illegal entry.

Christoph
Christoph el 19 de Jun. de 2012
hi namrata,
you should check if m1 is a scalar. It seems m1 is a vector or someting else.
reagrds, CN
  1 comentario
Walter Roberson
Walter Roberson el 19 de Jun. de 2012
I agree: m1 was probably created by applying size() to a vector, and the cure is probably to use length() of the vector instead.

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by