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: lassoConjGradTest.m
    path of file: ./repos/LassoADMM/Dataset2/使用共轭梯度法
    
    the code of the file until where you have to start completion: function [w,v,history] = lassoConjGradTest(rho, lambda, yalmipFile,patientNo,dataName,dirName)


t_start = tic;%设置时间戳

dataFile = [yalmipFile,'\',dataName];
dataAll = load(dataFile);  %从文件读数据

% dataAll = dataAll(1:400,:);  % 根据病人数量动态调整数据数目
% dataAll(401:800,:) = dataAll(1:400,:);
% dataAll(801:1600,:) = dataAll(1:800,:);

[w,v,W_i, V_i, history] = lassoConjGrad(dataAll, lambda, rho, patientNo);

K = length(history.primObjective);
paramFile = [yalmipFile,'\',dataName,'_featureVector.txt'];
evaluateFile1 = [yalmipFile,'\',dataName,'_MSE_R2.txt'];       %记录MSE R2 R2_Adjusted

%创建目标函数文件夹

    
function [w,v,history] = lassoConjGradTest(rho, lambda, yalmipFile,patientNo,dataName,dirName)


t_start = tic;%设置时间戳

dataFile = [yalmipFile,'\',dataName];
dataAll = load(dataFile);  %从文件读数据

% dataAll = dataAll(1:400,:);  % 根据病人数量动态调整数据数目
% dataAll(401:800,:) = dataAll(1:400,:);
% dataAll(801:1600,:) = dataAll(1:800,:);

[w,v,W_i, V_i, history] = lassoConjGrad(dataAll, lambda, rho, patientNo);

K = length(history.primObjective);
paramFile = [yalmipFile,'\',dataName,'_featureVector.txt'];
evaluateFile1 = [yalmipFile,'\',dataName,'_MSE_R2.txt'];       %记录MSE R2 R2_Adjusted

%创建目标函数文件夹
objectPath = [yalmipFile,'\目标函数文件'];            %% 创建目标函数文件夹
if ~exist(objectPath)
    mkdir(objectPath)
end