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: PlotCertTestResults.m
    path of file: ./repos/Wind-Turbine-Control/FAST_v7.02.00d-bjj/CertTest
    
    the code of the file until where you have to start completion: % FAST-ADAMS-Simulink CertTest comparisons:

function PlotCertTestResults( newPath, oldPath, PlotFAST, PlotAdams, PlotSimulink )
%function PlotCertTestResults( newPath, oldPath, PlotFAST, PlotAdams, PlotSimulink )
% This function plots the FAST, ADAMS, and/or FAST_SFunc CertTest results, 
% comparing .out/.plt, .elm, .asi, .pmf, and .eig files from the newPath 
% with the files contained in oldPath. PlotFAST, PlotADAMS, and PlotSimulink 
% are true/false values that can be set to avoid plotti
    
function [eivalues] = getEigenvaluesFromFile(fileName)

    fid = fopen(fileName);
    
    if fid > 0
        line = fgetl(fid);
        
        while ischar(line)
    
            if isempty( strfind(line, 'E I G E N V A L U E S') ) % ADAMS FILES HAVE THIS IDENTIFIER (but this could change in other versions!!!!)
                
                if isempty( strfind(line, 'ans =') )             % Output from Matlab script (this could change, in other versions, too!!!!!)
                    
                        % keep looking
                        
                    line = fgetl(fid);
                    
                else                    
                    
                         % read from Matlab (FAST) output file
                    dat = textscan( fid, '%f' ); %we'll read to the end