function y = gel_pulsa_1(x) t = x(1); f = x(2); w = 2*pi*f; phi = x(3); sinus = sin(w*t + phi); if sinus >= 0.9 y = 1; else y = 0; end