verifyField.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% This function checks if the field exists within the struct, if it doesn't
% it throws an error
%
% (struct, field) -> (None)
% Throws error if field doesn't exist
function verifyField(inputs, field)
if(~isfield(inputs, field))
throw(MException('',strcat('field "', field, '" does not exist')))
end
end