]> git.parisson.com Git - cnaq.git/commitdiff
git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@177 5fc3e0e6-29bc-4d03-b52b-c088cb...
authoryomguy <yomguy@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Tue, 8 Apr 2008 14:21:28 +0000 (14:21 +0000)
committeryomguy <yomguy@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Tue, 8 Apr 2008 14:21:28 +0000 (14:21 +0000)
tools/get_channels_in.m [new file with mode: 0644]
tools/get_channels_out.m [new file with mode: 0644]

diff --git a/tools/get_channels_in.m b/tools/get_channels_in.m
new file mode 100644 (file)
index 0000000..fdde5f0
--- /dev/null
@@ -0,0 +1,15 @@
+function channels_in = get_channels_in(ch_id)
+
+    if ch_id == 1
+       channels_in = [1];
+    elseif ch_id == 2
+       channels_in = [1 2];
+    elseif ch_id == 3
+       channels_in = [1 2 3];
+    elseif ch_id == 4
+       channels_in = [1 2 3 4];
+    elseif ch_id == 5
+       channels_in = [1 2 3 4 5 6 7 8];
+    end
+
+end
\ No newline at end of file
diff --git a/tools/get_channels_out.m b/tools/get_channels_out.m
new file mode 100644 (file)
index 0000000..de735ce
--- /dev/null
@@ -0,0 +1,15 @@
+function channels_out = get_channels_out(ch_id)
+
+    if ch_ind == 1
+       channels_out  = [1];
+    elseif ch_ind == 2
+       channels_out = [1 2];
+    elseif ch_ind == 3
+       channels_out = [1 2 3];
+    elseif ch_ind == 4
+       channels_out = [1 2 3 4];
+    elseif ch_ind == 5
+       channels_out = [1 2 3 4 5 6 7 8];
+    end
+
+end
\ No newline at end of file