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);
Mostrar comentarios más antiguos
tour(ic,:)=randperm(Ncity);
Respuestas (1)
Image Analyst
el 25 de Ag. de 2013
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.
Categorías
Más información sobre Particle Swarm en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!