Subscript indices must either be real positive integers or logicals.

1 visualización (últimos 30 días)
Don
Don el 14 de Jun. de 2019
Comentada: madhan ravi el 14 de Jul. de 2019
This is such a simple request, but I cannot find an answer
A =
1.0000 1.0000 0.3333 0.1429 0.1111
1.0000 1.0000 0.3333 0.2000 0.2000
3.0000 3.0000 1.0000 2.0000 0.2000
7.0000 5.0000 0.2500 1.0000 0.3333
9.0000 5.0000 5.0000 3.0000 1.0000
disp(A)
Subscript indices must either be real positive integers or logicals.
All i want is to display the matrix. Can someone help please? Thanks in advance 10^6

Respuestas (2)

madhan ravi
madhan ravi el 14 de Jun. de 2019
clear all % and try again
  1 comentario
madhan ravi
madhan ravi el 14 de Jun. de 2019
You have a variable named disp in your workspace so clear it using clear all or clear disp.

Iniciar sesión para comentar.


Soumya Sinha
Soumya Sinha el 17 de Jun. de 2019
Check whether the value of A has been varied somewhere during the course of the program.

Categorías

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

Productos


Versión

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by