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_irasa.m
    path of file: ./repos/fieldtrip/test
    
    the code of the file until where you have to start completion: function test_example_irasa()
% MEM 1gb

    
function test_example_irasa()
% MEM 1gb
% WALLTIME 00:10:00
% DEPENDENCY ft_freqanalysis ft_specest_irasa external/signal/resample.m
% DATA no
% tested on MATLAB_R2022a, macOS_Monterey_12.4, FT_2f387ff (@JM fixed resample scaling issue)

clear all;

% set simulation parameters
A = 1; % scale of 1/f amplitude
C = 1; % 1/f slope
O = 1; % weight of oscillatory components of the simulated data

lf = 1; % lower bound of freq
hf = 300; % higher bound of freq
sl = 600; % spectral lines

fs = 1000; % sampling rate
n = 60000; % time pnts
t = (1:n)/fs; % time axis

% simulate data
for rpt = 1:1

    %     try
    %       % generate pink noise
    %         dspobj = dsp.ColoredNoise('Color', 'pink', 'SamplesPerFrame', length(t));
    %         fn = dspobj()';
    %     catch
    %         % use another method to make pink noise when dsp.ColoredNoise returns licence error
    %         fn = cumsum(randn(1,length(t)));
    %         fn = fn./max(abs(fn)); %%% @JM This scale doesn't seem right?
    %     end