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: test_lasso_cv.m
    path of file: ./repos/SGDLibrary/gd_test
    
    the code of the file until where you have to start completion: function [] = test_lasso_cv()

    clc;
    clear;
    close all;
    
    

    
function [] = test_lasso_cv()

    clc;
    clear;
    close all;
    
    
    %% prepare dataset
    n = 1280; 
    d = 100;         
    k = 5;                                      % cardinality of nonzero elements
    if n >= d
        [A,~] = qr(randn(n,d),0);                   
        A = A'; 
    else
        error('Error: n should be greater than d.');                   
    end