please identify my mistake
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
l1=1;
for j=1:108
for t=2:108
if j<t
d2(l1,:)=c4*0;
else if j>=t
d2(l1,:)=c4*m1.a(1,2)^(j-1);
l1=l1+1;
end
end
end
end
댓글 수: 4
Walter Roberson
2014년 1월 16일
What error are you observing? Are you getting an error message, or is the result different than what you are expecting ?
arfa maqsood
2014년 1월 16일
Walter Roberson
2014년 1월 16일
Which line is the error occurring on?
Are you initializing d2 before the loop, or are you having d2 implicitly expanded as the loop runs?
arfa maqsood
2014년 1월 16일
답변 (2개)
Azzi Abdelmalek
2014년 1월 16일
- instead of .
d2(l1,:)=c4*m1*a(1,2)^(j-1)
댓글 수: 1
arfa maqsood
2014년 1월 16일
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!