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_wignerd.m
    path of file: ./repos/mtex/tools/math_tools/private
    
    the code of the file until where you have to start completion: clear all 

% Build mex function
mex -R2018a Wigner_d_fast.c



%% Compare different Wigner-d methods
N = 512
beta =rand*pi;

% past method 
ti
    
function
mex -R2018a Wigner_d_fast.c



%% Compare different Wigner-d methods
N = 512
beta =rand*pi;

% past method 
tic
a = Wigner_D(N,beta);
toc

% new faster method
tic
b = Wigner_d_fast(N,beta);
toc

% create cell array of all Wigner-ds with harmonic degree smaller then L
tic
c = Wigner_d_recursion(N,beta);
toc

% get new Wigner-d from previous two
tic
d = Wigner_d_recursion(c{end