Date: Jan 1, 2013 6:29 AM
Author: sathish kumar
Subject: how to access a value in a variable and send into a struct

i want access the value of a variable 'start',  iam getting error as undefined variable or function 'start'
i have not defined ''start'' before this part of code,directly i am assigning value of i to the ''start'' variable
here is my code
for i=1:length(group)
if fg >= g(i);
if kg >= l(i);
if max h == h(i);
start = i
break;
end
end
end
end
do_game=cri{start};

here cri=sem_de;
sem_de{j}=sem;


please tell me how to define a variable ''start'' in this code