Borrar filtros
Borrar filtros

Subscript indices must either be real positive integers or logicals.

1 visualización (últimos 30 días)
How can i solve this error.

Respuesta aceptada

James Tursa
James Tursa el 3 de Jul. de 2018
Use the debugger. Type this at the MATLAB command prompt:
dbstop if error
Then run your code. When the error occurs, the code will pause at the offending line with all variables intact. Examine the indexing variables to see what their values are, then backtrack in your code to figure out why they are not the integers you expect them to be.

Más respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display 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