error when call fun.
古いコメントを表示
hi, I have this function: function [swarm]=initSwarm(N, N_PAR)
swarm = zeros(N,N_PAR);
for i = 1: N
for j = 1: N_PAR
swarm(i,j) = rand(1,1)%* ( V_MAX(j)-V_MIN(j) ) + V_MIN(j);
end
end
when call it:
x=initSwarm(5,5);
I get this error, I don't know why?
??? Undefined function or method 'initSwarm' for input arguments of type 'double'.
採用された回答
その他の回答 (1 件)
Grzegorz Knor
2011 年 12 月 19 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Particle Swarm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!