필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

the programm ignores my 'if' condition

조회 수: 1 (최근 30일)
chaim giladi
chaim giladi 2020년 6월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
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
chaim giladi
chaim giladi 2020년 6월 8일
oh, I got it...
of course :)

답변 (0개)

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by