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: wingSetParams.m
    path of file: ./repos/LADAC/aerodynamics/vlm_wing/parameters
    
    the code of the file until where you have to start completion: function [prm] = wingSetParams(prm)
%setParams calculates further wing parameters 
%
% Inputs:
%    prm                    Struct which contains all wing parameters, in -
%                           (struct, see parameter files for wings)
%
% Outputs:
%    prm                  	Struct which contains all wing parameters, in -
%                           (struct)
%
% See also: wingLoadParameters

% Disclamer:
%   SPDX-License-Identifier: GPL-3.0-only
% 
%   Copyright (C) 2020-2022 Yannic Beyer
%   Copyright (C) 2022 TU Braunschweig, Institute of Flight Guidance
% *************************************************************************

    
function [prm] = wingSetParams(prm)
%setParams calculates further wing parameters 
%
% Inputs:
%    prm                    Struct which contains all wing parameters, in -
%                           (struct, see parameter files for wings)
%
% Outputs:
%    prm                  	Struct which contains all wing parameters, in -
%                           (struct)
%
% See also: wingLoadParameters

% Disclamer:
%   SPDX-License-Identifier: GPL-3.0-only
% 
%   Copyright (C) 2020-2022 Yannic Beyer
%   Copyright (C) 2022 TU Braunschweig, Institute of Flight Guidance
% *************************************************************************

% aircraft geometry constants
% wing area (scalar), in m^2
prm.S = trapz( prm.eta_segments_wing*prm.b./[1,cos(prm.nu)], prm.c );  
% aspect ratio, in -
prm.AR = prm.b^2 / prm.S;
% taper ratio (total wing), in -
prm.tau = prm.c(end