view m-toolbox/classes/@sigBuilder/refreshSignalList.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line source

% REFRESHSIGNALLIST fills the signal list from the signal array
% 
% M Hewitson
% 
% $Id: refreshSignalList.m,v 1.2 2011/04/08 08:56:35 hewitson Exp $
% 

function refreshSignalList(mainfig)
  
  % Get handle to signal list
  sh = findobj(mainfig.handle, 'Tag', 'sigBuilderSignalList');
  
  % Get objects
  data = {};
  for jj=1:numel(mainfig.signals)
    obj = mainfig.signals(jj);
    if strcmp(obj.hist.methodInfo.sets{1}, 'From Waveform')
      type = find(obj.hist.plistUsed, 'WAVEFORM');      
    elseif strcmp(obj.hist.methodInfo.sets{1}, 'From Time-series Function')
      type = ['f(' find(obj.hist.plistUsed, 'TSFCN') ')'];
    else
      type = '';
    end
    data = [data; {type, obj.name, obj.data.nsecs, ['  ' char(obj.data.t0) '  '], true}];
  end
  
  set(sh, 'Data', data);
  set(sh, 'ColumnWidth', {65, 105, 50, 160, 40});
  
end