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: inspect_bug2978.m
    path of file: ./repos/fieldtrip/test
    
    the code of the file until where you have to start completion: function inspect_bug2978


    
function inspect_bug2978

% WALLTIME 00:10:00
% MEM 1gb
% DEPENDENCY
% DATA no

ntrial = 5;

%%

data = [];
data.label = {'1', '2', '3'};
for i=1:ntrial
  t = (1:1000)/1000;
  s = sin(i*2*pi*t); % make a sine with 1, 2, 3, ... Hz
  data.time{i} = t;
  data.trial{i} = 0.1*randn(3,1000);
  data.trial{i}(1,:) = s;  % insert it in the first channel
end