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: m_InitPop.m
    path of file: ./repos/Graduation-Design-and-MATLAB-Code-/列车交路方案优化遗传算法程序
    
    the code of the file until where you have to start completion: function pop=m_InitPop(numpop,irange_l,irange_r)
%% 初始化种群
%  输入：numpop--种群大小；
%       [irange_l,irange_r]--初始种群所在的区间
pop=[];

    
function pop=m_InitPop(numpop,irange_l,irange_r)
%% 初始化种群
%  输入：numpop--种群大小；
%       [irange_l,irange_r]--初始种群所在的区间
pop=[];
for j = 1:numpop
    for i=1:4
        % 因为a,b,f1,f2要求整数，所以生成随机整数
        pop(i,j)= round(irange_l+(irange_r-irange_l)*rand);
    end