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: universal_lagrange.m
    path of file: ./repos/Orbital_Mechanics
    
    the code of the file until where you have to start completion: function [R , V] = universal_lagrange(R0,V0,dt,mu)
    %% Universal Lagrange Function and True Anomoly
    %
    % Jeremy Penn
    % 22 September 2017
    %
    % Revision: 22/09/2017
    %           19/10/2017 - Moved the ploting to outside functions to
    %           increase encapsulation.

    
function [R , V] = universal_lagrange(R0,V0,dt,mu)
    %% Universal Lagrange Function and True Anomoly
    %
    % Jeremy Penn
    % 22 September 2017
    %
    % Revision: 22/09/2017
    %           19/10/2017 - Moved the ploting to outside functions to
    %           increase encapsulation.
    %           30/10/2017 - Moved calculation of lagrange functions to
    %                        outisde functions to increase encapsulation.
    %
    % function [R , V] = UniversalLagrange(R0,V0,dt)
    %
    % Purpose:  This function calculates the true anomaly to find the f and
    %           g lagrange functions used to calculate the time-depend