func=@(x)(-sinc(x));%遗传算法函数x=(ga(func,1,[],[],[],[],-15,15));