% makeAnalyzePos.m
%
% Script to compile analyzePos.exe
% 
clear all;
close all;
clc;

disp('Making AnalyzePos');
analyzePosVersion = loadVersion; 

% Save current path. 
savePath = path; 

% Revert to Matlab's default path. Prevent unwanted files from being
% pulled into the build. 
path(pathdef);

tic; 
mcc -m ...
    analyzePos.m ...
    cleanUp.m ...
    computeD2M.m ...
    computeTimeScale.m ...
    deltablh_decimal.m ...
    generateHTML.m ...
    generatePlots.m ...
    loadParameterFile.m ...
    loadPositionFile.m ...
    loadVersion.m ...
    makeAnalyzePos.m ...
    myunwrap.m ...
    newfigure.m ...
    packageResults.m ...
    plotClockError.m ...
    plotPVFig.m ...
    plotPVHist.m ...
    plotPosError.m ...
    plotVariousAttributes.m ...
    plotVelError.m ...
    printPngPlot.m ...
    rec11key.m ...
    rec29key.m ...
    selectSegments.m ...
    spawnViewDat.m ...
    suptitle.m ...
    xyz2geo.m;
toc; 

% Restore Path
path(savePath); 

