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: color_gamma_1d_data2fit.m
    path of file: ./repos/md-dmri/methods/color_gamma
    
    the code of the file until where you have to start completion: function m = color_gamma_1d_data2fit(S, xps, opt)
% function m = color_gamma_1d_data2fit(S, xps, opt)

unit_to_SI = [max(S+eps) 1e-9 (1e-9)^2];

m_guess   = [max(S+eps) 1e-9 1e-20];
m_lb      = [0.99*max(S+eps) 1e-11 -1e-19];
m_ub      = [1.01*max(S+eps) 3e-9 5e-18];
                
t_guess   = m_guess./unit_to_SI;
t_lb      = m_lb./unit_to_SI;
t_ub      = m_ub./unit_to_SI;

    function m = t2m(t) % convert local params to outside format
        
        % define model parameters

    
function m = color_gamma_1d_data2fit(S, xps, opt)
% function m = color_gamma_1d_data2fit(S, xps, opt)

unit_to_SI = [max(S+eps) 1e-9 (1e-9)^2];

m_guess   = [max(S+eps) 1e-9 1e-20];
m_lb      = [0.99*max(S+eps) 1e-11 -1e-19];
m_ub      = [1.01*max(S+eps) 3e-9 5e-18];
                
t_guess   = m_guess./unit_to_SI;
t_lb      = m_lb./unit_to_SI;
t_ub      = m_ub./unit_to_SI;

    function m = t2m(t) % convert local params to outside format
        
        % define model parameters
        s0    = t(1);         % Signal at no diff encoding
        d     = t(2);         % 1st moment
        mu2   = t(3);         % 2nd moment
        
        m = [s0 d mu2] .* unit_to_SI;
    end