getDoubleFromField.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% (Any) => (double)
% Get double value from a struct or return the input.
function output = getDoubleFromField(field)
if isstruct(field)
output = str2double(field.Text);
else
output = field;
end
end