% LABEL Start
global j new_pop Best_Solution Zeta_Best_Solution Best_Solution1 Zeta_Best_Solution1;
% Generating 10 population in each generation
but I got error messages as follows :
Error using goto (line 638)
Error: Illegal use of reserved keyword "elseif".
Error in mainGA2 (line 85)
What should I do? Please give me suggestion to use your functions
This code would be extremely useful because I'd rather not put 2/3 of my very long m-file into an if statement, but unfortunately I hit a problem as I have a continue statement in the section of code that I want to go to using goto. I noticed you mentioned in 2010 that you were thinking of adding in support for continue and break statements... are there any plans to do so?
I had try the example and its works. However i was facing a problem when applied it in my own program which it come out ''??? Index exceeds matrix dimensions.'' It happen when i use goto(137) in line 335. But it works when i use goto(314) in line 294(another part in same program). Will this mean the goto function not suitable to use for big gap?