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_nfsft_equispaced.m
    path of file: ./repos/nfft/matlab/nfsft
    
    the code of the file until where you have to start completion: %TEST_NFSFT Example program:  of fast algorithm
%Use simple_test.m for the basic usage exampe.

% Copyright (c) 2002, 2017 Jens Keiner, Stefan Kunis, Daniel Potts
%
% This program is free software; you can redistribute it and/or modify it under
% the terms of the GNU General Public License as published by the Free Software
% Fou
    
function values
f_fast = nfsft_get_f(plan);

% fast FSFT transform
tic
nfsft_trafo(plan2);
fprintf('Time of FSFT transform:    %g seconds\n', toc);
% get function values
f_fsft = nfsft_get_f(plan2);


% random function values for adjoint
f = rand(M,1);

% adjoint transform
if(direct)
nfsft_set_f(plan,f)
tic
ndsft_adjoint(plan);
fprintf('Time of direct adjoint:    %g seconds\n', toc);

% get function values
fh2_direct = f_hat(nfsft_get_f_hat(plan));
end