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: op_findMax.m
    path of file: ./repos/osprey/libraries/FID-A/processingTools
    
    the code of the file until where you have to start completion: %% op_findMax.m
%
%   This function finds maximum value in the FD for all subspectra.
%
%
%   USAGE:
%           out=op_findMax(in,abs);
%
%   INPUT:  
%           in      = data in FID-A struct format
%           abs     = absolute values flag
%
%
%   AUTHORS:
%       Dr. Helge Zoellner (Johns Hopkins University, 2020-02-08)
%
    
function finds maximum value in the FD for all subspectra.
%
%
%   USAGE:
%           out=op_findMax(in,abs);
%
%   INPUT:  
%           in      = data in FID-A struct format
%           abs     = absolute values flag
%
%
%   AUTHORS:
%       Dr. Helge Zoellner (Johns Hopkins University, 2020-02-08)
%       hzoelln2@jhmi.edu
%
%   CREDITS:
%       This code is based on numerous functions from the FID-A toolbox by
%       Dr. Jamie Near (McGill University)
%       https://github.com/CIC-methods/FID-A
%       Simpson et al., Magn Reson Med 77:23-33 (2017)
% 

function out=op_findMax(in,absolute);
% Fall back into defaults
if nargin < 2
    absolute =0;
end