Home > m > gui > ltpdv > callbacks > ltpdv_filter_control_chans.m

ltpdv_filter_control_chans

PURPOSE ^

DV_FILTERCONTROLCHANS filter out control channels

SYNOPSIS ^

function chansout = filter_control_chans(channels)

DESCRIPTION ^

 DV_FILTERCONTROLCHANS filter out control channels
 
 M Hewitson 26-07-06
 
 $Id: ltpdv_filter_control_chans.m,v 1.1 2008/05/11 10:38:43 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function chansout = filter_control_chans(channels)
0002 
0003 % DV_FILTERCONTROLCHANS filter out control channels
0004 %
0005 % M Hewitson 26-07-06
0006 %
0007 % $Id: ltpdv_filter_control_chans.m,v 1.1 2008/05/11 10:38:43 hewitson Exp $
0008 %
0009 
0010 nchans = size(channels,1);
0011 chansout = [];
0012 for c=1:nchans
0013   idx = strfind(channels(c,:), '#');
0014   if isempty(idx)
0015     chansout = strvcat(chansout, deblank(channels(c,:)));
0016   end
0017 end
0018 
0019 chansout = char(sort(cellstr(chansout)));
0020 
0021 % END

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003