error with max function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
m. muner
am 10 Jun. 2016
Beantwortet: Jos (10584)
am 10 Jun. 2016
hello i am working on genetic algorithm program and i am not using the toolbox .as i am trying to calculate the fitness function i have problem with max function the error says (An assignment statement makes an assignment to multiple values, but the expression on the right side of the assignment does not appear to produce multiple values). i use the same function in other program and its works,is the GA initialization causing problem or what ? the beginning of the program include initialization step and GA counter i wrote the max function like this
[master_ant,id]=max(pr,[],2);
pr:250*20 matrix
0 Kommentare
Akzeptierte Antwort
Jos (10584)
am 10 Jun. 2016
What does
which max
tell you? Probably you have overwritten the function.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Genetic Algorithm finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!