offline2Struct.m 400 B

12345678910111213141516
  1. %% Converts offline sorter variables into a structure for easy MATLAB manipulation
  2. %
  3. % Kian Torab
  4. % ktorab@blackrockmicro.com
  5. % Blackrock Microsystems
  6. for i = 1:96
  7. ChannelName = ['Chan', num2str(i, '%03.0f')];
  8. if exist(ChannelName, 'var')
  9. VariableName = eval(ChannelName);
  10. Channels.(['Chan', num2str(i, '%3.0f')]) = VariableName;
  11. end
  12. end
  13. clear Chan0*;