Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
hello professionals ..i have attached my code plz suggest me why it is not displaying value of kp2 and e as it is not entering the loop
조회 수: 2 (최근 30일)
이전 댓글 표시
kp2=rand(10);
e=rand(10);
for i=1:length(50)
r=e(i)*dp-kp1*kp2(i)*(p-1);
if r==1
break;
end
end
here dp , kp1 and p are previously calculated.in this code value come in fraction and it doesnot enter the for if loop...plz suggest me code
댓글 수: 1
Image Analyst
2013년 4월 13일
편집: Image Analyst
2013년 4월 13일
This was answered in your duplicate question: http://www.mathworks.com/matlabcentral/answers/71840#answer_82074 It was because you have "for i=1:length(50)" instead of "for i=1:50"
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!