You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: MS_make_trace.m
    path of file: ./repos/MSAT/msat
    
    the code of the file until where you have to start completion: % MS_MAKE_TRACE - Create a pair of orthogonal traces
% 
% // Part of MSAT - The Matlab Seismic Anisotropy Toolkit //
%
% [time, T00, T90] = MS_make_trace(spol, dfreq, max_tlag)
%
%  Inputs:
%     dfreq (scalar)    : Do
    
function [time,amp0,amp90] = FDGaussian_wavelet(spol,dfreq,max_tlag)
    % generate a (first-derivative) Gaussian wavelet centred on 0, time base is
    % set so the maximum tlag can be accomodated. This is defined as
    % -(max_tlag+2*T):T/100:(max_tlag+2*T) ;

    % calculate time base
    T = 1/dfreq ;
    dt = T/100 ;
    time = -(max_tlag+2*T):dt:(max_tlag+2*T) ;

    % calculate wavelet
    sig = T/6 ;
    amp = -(time./(sig.^3*sqrt(2.*pi))).*exp(-time.^2./(2.*sig.^2)) ;
   
    % normalise and project amplitude
    amp = amp./max(amp) ;
    amp0 = amp.*cosd(spol) ;
    amp90 = amp.*sind(spol) ;
end