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: pspm_bf_scrf_f.m
    path of file: ./repos/PsPM/src
    
    the code of the file until where you have to start completion: function [ft, p, t] = pspm_bf_scrf_f(td, p)
% ● Description
%   pspm_bf_scrf_f is the canonical skin conductance response function.

    
function [ft, p, t] = pspm_bf_scrf_f(td, p)
% ● Description
%   pspm_bf_scrf_f is the canonical skin conductance response function.
%   (exponentially modified gaussian, EMG)
% ● Format
%   [bf p] = pspm_bf_scrf_f(td, p)
% ● Arguments
%       td: time resolution in s
%     p(1): time to peak
%     p(2): variance of rise defining gaussian
%   p(3:4): decay constants
% ● Reference
%   Bach DR, Flandin G, Friston KJ, Dolan RJ (2010). Modelling event-related skin
%   conductance responses. International Journal of Psychophysiology, 75, 349-356.
% ● History
%   Introduced in PsPM 3.0
%   Written in 2009-2015 by Dominik R Bach (Wellcome Trust Centre for Neuroimaging)

%% initialise
global settings;
if isempty(settings), pspm_init; end