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: practical_2_bu.m
    path of file: ./repos/advanced_fMRI_course/Practical#2
    
    the code of the file until where you have to start completion: %% T test
clear all;
close all;
clc;

NbSubject = 100;

% -------------------------------------------------------------------------%
%                               Create data                               %
% ------------------------
    
function
xBF.dt = 7; % Temporal resolution in seconds of the informed basis set you are going to create
xBF.name = 'hrf (with time and dispersion derivatives)';
xBF.length = 32;
xBF.order = 1;
xBF = spm_get_bf(xBF);

Onsets = 6:12:84;
OnsetVector = zeros(length(TimeCourseLeft), 1);
for i = 1:length(Onsets)
    OnsetVector([Onsets(i):Onsets(i) + 5]) = 1;
end