when i execut i got an error ??? Undefined function or method 'randperm' for input arguments of type 'double'. Error in ==> ant at 26 tour(ic,:)=randperm(Ncity);
显示 更早的评论
回答(1 个)
Image Analyst
2013-8-25
Type
>> which -all randperm
and tell us what it says. Most likely you have some other randperm that has blown away the built-in one (i.e. is being used in precedence to the built in one), or somehow you deleted the built-in randperm.
类别
在 帮助中心 和 File Exchange 中查找有关 Particle Swarm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!