git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
2095645
Branches
Tags
master
SVMCrossVal.git
sortedAdd.m
SVMCrossVal toolbox init
Christoph Budziszewski
commited
2095645
at 2008-12-17 13:45:29
sortedAdd.m
Blame
History
Raw
function sortedList = sortedAdd(element, list) if(isempty(list)) sortedList = element; return; end head = list(1); if element.id < head.id sortedList = [element list]; else sortedList = [head sortedAdd(element, list(2:length(list)))]; end end