Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

facing the problem in line no.... F(j)>0.0 in this loop

1 Ansicht (letzte 30 Tage)
radhe  krishan
radhe krishan am 14 Apr. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
if F(j)>0.0
a=rand();
if a>0.5
w=1;
else
w=0;
end
if w==1
i=i+1;
sel1(i)=j;
m1(i)=sel1(i);
F(j)=F(j)-1;
else
end
else
end
end
end
  1 Kommentar
John D'Errico
John D'Errico am 14 Apr. 2017
What problem?
I do wonder why you think EVERY if statement must have a blank else clause. But that is not at all relevant. You also have far more end statements in this code to ever run.
If you have an error message, then give us the ENTIRE text of the message, not just part of the message. Provide the complete error as generated.

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by