Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
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 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Image Analyst
am 13 Apr. 2013
Bearbeitet: Image Analyst
am 13 Apr. 2013
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"
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!