for skips=1:30;
  eval(sprintf('[Jr Jg Jb]=comparasum(1,31,%s);',skips));
end%for

