Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

index must be a positive integer or logical

2 visualizaciones (últimos 30 días)
Shahd Ewawi
Shahd Ewawi el 5 de Abr. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Attempted to access Connected(0,936); index must be a positive integer or logical.
Error in ==> coc at 36 cc=Connected(i-1,j);
anyone knows how to solve this ??

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 5 de Abr. de 2013
You can not use 0 as index, it must be 1,2,3,... or logical(1) and logical(0)
  3 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 5 de Abr. de 2013
Editada: Azzi Abdelmalek el 5 de Abr. de 2013
cc=Connected(i-1,j)
If i start from 1 then i-1 start from 0
Shahd Ewawi
Shahd Ewawi el 5 de Abr. de 2013
Editada: Shahd Ewawi el 5 de Abr. de 2013
thanks for your help

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by