git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
aa21d53
Branches
Tags
master
SVMCrossVal.git
private
getSubjectCoordinates.m
radius frontend enabled, fixed backend problems. radius working
Christoph Budziszewski
commited
aa21d53
at 2009-03-18 14:50:47
getSubjectCoordinates.m
Blame
History
Raw
function scoords = getSubjectCoordinates(gcoords,map) m = java.util.HashMap ; %build lookuptable for i = 1:numel(map.names) key = cell2mat(map.names(i)); val = map.coords(i,:); m.put(key,val); end % do the lookup scoords = []; for c = 1:numel(gcoords) key = strtrim(gcoords(c).name); val = m.get(key)'; % mod = gcoords(c).mod; % scoords = [scoords; val+mod]; co = struct; co.coord = val; co.rad = gcoords(c).rad; scoords = [scoords; co]; end end