You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OV_getStreamedMatrixOutputHeader.m 803B

123456789101112131415161718192021222324
  1. % openvibe toolbox for Matlab
  2. % OV_getStreamedMatrixOutputHeader.m
  3. % -------------------------------
  4. % Author : Laurent Bonnet (INRIA)
  5. % Date : 28/07/2011
  6. % Set the header information on a signal output.
  7. % MEANT TO BE USED IN USER SCRIPT
  8. function [errno, nb_dimensions, dimension_sizes, dimension_labels] = OV_getStreamedMatrixOutputHeader(box_in, output_index)
  9. if(numel(box_in.outputs{output_index}.header) == 0)
  10. nb_dimensions = 0;
  11. dimension_sizes = 0;
  12. dimension_labels = 0;
  13. errno = 1;
  14. else
  15. nb_dimensions = box_in.outputs{output_index}.header.nb_dimensions;
  16. dimension_sizes = box_in.outputs{output_index}.header.dimension_sizes;
  17. dimension_labels = box_in.outputs{output_index}.header.dimension_labels;
  18. errno = 0;
  19. end
  20. end