필터 지우기
필터 지우기

error with max function

조회 수: 3 (최근 30일)
m. muner
m. muner 2016년 6월 10일
답변: Jos (10584) 2016년 6월 10일
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

채택된 답변

Jos (10584)
Jos (10584) 2016년 6월 10일
What does
which max
tell you? Probably you have overwritten the function.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by