git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
4b57696
Branches
Tags
master
SVMCrossVal.git
private
strtrunc.m
moved helpercode to private
Christoph Budziszewski
commited
4b57696
at 2009-01-07 09:24:55
strtrunc.m
Blame
History
Raw
% function s = strtrunc(str) % s=str; % c=1 % while isspace(s(c)) % s = s(2:length(s)) % end % while isspace(s(length(s))) % s = s(1:length(s)-1); % end % end function s = strtrunc(str) if isspace(str(1)) s = strtrunc(str(2:length(str))); elseif isspace(str(length(str))) s = strtrunc(str(1:length(str)-1)); else s = str; end end