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: check_matlab_version.m
    path of file: ./repos/erplab/functions
    
    the code of the file until where you have to start completion: % PURPOSE: 
%   little function to simplify the checking of the version of Matlab
% FORMAT:
%   [Matlab_ver_yr] = check_matlab_version
% OUTPUT:
%    Matlab_ver_yr - a numeric of the release year {
    
function to simplify the checking of the version of Matlab
% FORMAT:
%   [Matlab_ver_yr] = check_matlab_version
% OUTPUT:
%    Matlab_ver_yr - a numeric of the release year {like 2018.5 for Matlab
%    R2018b.}
%
% *** This function is part of ERPLAB Toolbox ***
% Andrew X Stewart
% Center for Mind and Brain
% University of California, Davis,
% Davis, CA
% 2018

function [Matlab_ver_yr] = check_matlab_version

Matlab_ver = version('-release');
Matlab_ver_yr = str2double(Matlab_ver(1:4));


if strcmp(Matlab_ver(5),'b')
    Matlab_ver_yr = Matlab_ver_yr + 0.5; 
    % signify 'b' releases with a 0.5 added to the year
end