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: oneMinusCosGustFg.m
    path of file: ./repos/LADAC/environment/atmosphere
    
    the code of the file until where you have to start completion: % oneMinusCosGustFg0 computes the Flight Profile Alleviation Factor for 
%   a 1-cos gust according to the requirements o
    
function F_g = oneMinusCosGustFg( F_g0, alt_mo, alt ) %#codegen

F_gMax = 1;
alt_0 = 0;

alt_vector = [ alt_0, alt_mo ];
F_g_vector = [ F_g0, F_gMax ];

F_g = interp1( alt_vector, F_g_vector, alt );

end