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: cadf_d.m
    path of file: ./repos/malini/Codes/FC_EC_calculation code/DynamicFC/jplv7/coint
    
    the code of the file until where you have to start completion: % PURPOSE: demonstrate the use of cadf()
%          function to test for cointegration
%          among I(1) time-series
% ---------------------------------------------
% usage: cadf_d
% -------
    
function to test for cointegration
%          among I(1) time-series
% ---------------------------------------------
% usage: cadf_d
% ----------------------------------------------

clear all;
nobs = 100;

   dx =   randn(nobs,2);
   y = cumsum(dx); % non-cointegrated system
                   % with 2 I(1) variables
   nlags = 3;
   
  for i=1:nlags;
   res = cadf(y(:,1),y(:,2),-1,i);
   prt(res);
  end