function y = batas_teta(x) S=30; % derajat B=(pi/180)*S; % radian if x >= B y = B; elseif x <= -B y = -B; else y = x; end