Borrar filtros
Borrar filtros

Info

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

the programm ignores my 'if' condition

1 visualización (últimos 30 días)
chaim giladi
chaim giladi el 8 de Jun. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
hi everyone.
I can't understand why the inner 'if' loop here doesn't work. I get 'Array indices must be positive integers or logical values' message, although it's supposed to act only if the index is >0:
for p=1;
for o=[0:17449];
if ~isempty(sequences{1}{20+30*(o)}(human_PRE_perm_or_not{o+1,p}{:}-5))
if (human_PRE_perm_or_not{o+1,p}{:}-5)>0
base_minus5_human{o+1, p}=sequences{1}{20+30*(o)}(human_PRE_perm_or_not{o+1,p}{:}-5);
end
end
end
end
thanks in advance.
  1 comentario
chaim giladi
chaim giladi el 8 de Jun. de 2020
oh, I got it...
of course :)

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by