BlockVectorDataType.m 837 B

1234567891011121314151617181920212223242526272829303132
  1. classdef BlockVectorDataType < uint16
  2. %BLOCKVECTORDATATYPE Enumeration of known types of block vector data.
  3. %
  4. % Raw_v1: Continuous data from an Axion Muse or Maestro device.
  5. %
  6. % Spike_v1: Binary Spike Data recorded by a Spike detector in Axis.
  7. enumeration
  8. Raw_v1(0)
  9. Spike_v1(1)
  10. end
  11. methods(Static)
  12. function [value , success] = TryParse(aInput)
  13. try
  14. value = BlockVectorDataType(aInput);
  15. success = true;
  16. catch e
  17. warning(...
  18. 'BlockVectorDataType:TryParse', ...
  19. ['Unsupported BlockVectorDataType', e]);
  20. value = aInput;
  21. success = false;
  22. end
  23. end
  24. end
  25. end