got an error while evaluating the value from equation.

while writing the equation for velocity vel=C*(w*vel+c1*r1*(localpar-par)+c2*r2*(ones(popsize,1)*globalpar-par)); I got an error.Please suggest me the correct form to write any equation.

1 Commento

Roger Stafford
Roger Stafford il 20 Nov 2013
Modificato: Roger Stafford il 20 Nov 2013
You need to show what the matlab error message says and perhaps also tell us which of your variables are scalars and the sizes of any arrays involved in your expression. Also what is the value of 'popsize'?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange

Richiesto:

il 20 Nov 2013

Modificato:

il 20 Nov 2013

Community Treasure Hunt

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

Start Hunting!

Translated by