Browse code

moved helpercode to private

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@97 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on07/01/2009 09:24:55
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-% function s = strtrunc(str)
2
-% s=str;
3
-% c=1
4
-% while isspace(s(c)) 
5
-%     s = s(2:length(s))
6
-% end
7
-% while isspace(s(length(s)))
8
-%     s = s(1:length(s)-1);
9
-% end
10
-% end
11
-
12
-function s = strtrunc(str)
13
-if isspace(str(1))
14
-    s = strtrunc(str(2:length(str)));
15
-elseif isspace(str(length(str)))
16
-    s = strtrunc(str(1:length(str)-1));
17
-else
18
-    s = str;
19
-end
20
-end
21 0
\ No newline at end of file
Browse code

class def parsing added strtrunc.m

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@94 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on17/12/2008 18:42:12
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,20 @@
1
+% function s = strtrunc(str)
2
+% s=str;
3
+% c=1
4
+% while isspace(s(c)) 
5
+%     s = s(2:length(s))
6
+% end
7
+% while isspace(s(length(s)))
8
+%     s = s(1:length(s)-1);
9
+% end
10
+% end
11
+
12
+function s = strtrunc(str)
13
+if isspace(str(1))
14
+    s = strtrunc(str(2:length(str)));
15
+elseif isspace(str(length(str)))
16
+    s = strtrunc(str(1:length(str)-1));
17
+else
18
+    s = str;
19
+end
20
+end
0 21
\ No newline at end of file