load data;

endvars = {'a'  'k'}; 
endvars = sort(endvars);

for i=1:length(endvars)
    eval(strcat(endvars{i}, '=','data(',num2str(i),',:)'';'));
end