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

    
function test_example_fooof

% DATA no
% MEM 2gb
% WALLTIME 00:10:00

%
%% Fitting oscillations and one-over-F (FOOOF)
%
% FOOOF allows distinguishing rhythmic activity from concurrent power-spectral 1/f modulations. The implementation in FieldTrip is using code from the Brainstorm toolbox. The Brainstorm website has a [tutorial](https://neuroimage.usc.edu/brainstorm/Tutorials/Fooof) that provides some more details, there is a [GitHub project](https://fooof-tools.github.io/fooof/) with more tutorials and documentation, and the [FOOOF reference paper](https://doi.org/10.1038/s41593-020-00744-x) explains and demonstrates it.
%
% The following code shows how to extract spectral features from simulated data.
%
% simulate data
F = 1; % weight of (F)ractal components of the simulated data
O = 1; % weight of (O)scillatory components of the simulated data
t = (1:60000)/1000; % time axis
for rpt = 1:1
    % use a simple method to make pink noise that does not rely on the digital signal processing toolbox
    fn = cumsum(randn(1,length(t)));
    fn = fn./max(abs(fn));

    sgn10 = ft_preproc_bandpassfilter(randn(1,length(t)),1000,[8 12],[],'firws');
    sgn10 = 0.15.*sgn10./max(abs(sgn10));

    sgn60 = ft_preproc_bandpassfilter(randn(1,length(t)),1000,[40 80],[],'firws');
    sgn60 = 0.05.*sgn60./max(abs(sgn60));

    % add a 10 Hz and 60 Hz oscillation
    data.trial{1,rpt} = F * fn + O * sgn10 + O * sgn60;
    data.time{1,rpt}  = t;
    data.label{1}     = 'chan';
    data.trialinfo(rpt,1) = rpt;
end