From: yomguy Date: Tue, 8 Apr 2008 14:21:28 +0000 (+0000) Subject: git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@177 5fc3e0e6-29bc-4d03-b52b-c088cb... X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=dae214caca42935eeb2e5ddc25aae154ffc2756b;p=cnaq.git git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@177 5fc3e0e6-29bc-4d03-b52b-c088cb822bde --- diff --git a/tools/get_channels_in.m b/tools/get_channels_in.m new file mode 100644 index 0000000..fdde5f0 --- /dev/null +++ b/tools/get_channels_in.m @@ -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 index 0000000..de735ce --- /dev/null +++ b/tools/get_channels_out.m @@ -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