%   Function to compute the magnitude y of a Gaussian-
%   form function from three parameters in a vector x 
%   at the radian frequencies in a vector z

function y = gf(x,z)
    A = x(1) ; m = x(2) ; s = x(3) ;
    y = A*exp(-(z-m).^2/s^2) ;