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_transfer_fit.m
    path of file: ./repos/PsPM/src/backroom
    
    the code of the file until where you have to start completion: function MSE=pspm_transfer_fit(c, R, PR)
% SCR_TRANSFER_FIT calculates the mean squared error (MSE) for a given
% constant to convert pulse rate (PR) to resistance/conductance, disregarding a

    
function MSE=pspm_transfer_fit(c, R, PR)
% SCR_TRANSFER_FIT calculates the mean squared error (MSE) for a given
% constant to convert pulse rate (PR) to resistance/conductance, disregarding a
% serial resistor (which should be added to R) a known PR offset (which
% should be subtracted from PR)
%
% FORMAT:
% MSE=pspm_transfer_fit(R, PR);
%
%__________________________________________________________________________
% PsPM 3.0
% (C) 2008-2015 Dominik R Bach (Wellcome Trust Centre for Neuroimaging)

% $Id$
% $Rev$

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