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: FD_1D_dispersion_func.m
    path of file: ./repos/FD_ACOUSTIC/Matlab/1D/functions
    
    the code of the file until where you have to start completion: %% FD_1D_dispersion_func.m Calculate dispersion for 1D acoustic FD-schemes
% GNU General Public License v3.0
%
% Author: Florian Wittkamp 2016
%
% Calculating the numerical d
    
function [return_value]=FD_1D_dispersion_func(temporal_order,spatial_order,CFL,KH)

%% Calculate spatial derivation impact
coeff_spatial=FD_taylor_coeff_func(spatial_order);
N=numel(coeff_spatial);
spatial_influence=0;
for n=1:N;
    spatial_influence=spatial_influence+str2num(rats(coeff_spatial(n)))*sin(KH/2*(2*n-1));
end