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

Roger Stafford
Roger Stafford 2013년 11월 20일
편집: Roger Stafford 2013년 11월 20일
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'?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2013년 11월 20일

편집:

2013년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by