function scoords = getSubjectCoordinates(gcoords,map)
m = java.util.HashMap ;

for i = 1:numel(map.names)
    key = cell2mat(map.names(i));
    val = map.coords(i,:);
    m.put(key,val);
end

scoords = [];

for c = 1:numel(gcoords)
    key = strtrim(gcoords(c).name);
    val = m.get(key)';
    mod = gcoords(c).mod;
    scoords = [scoords; val+mod];
end

end