Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
radhe  krishan
radhe krishan il 14 Apr 2017
Chiuso: MATLAB Answer Bot il 20 Ago 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 Commento
John D'Errico
John D'Errico il 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.

Risposte (0)

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by