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_getFeatureVectorOutputHeader.m 629B

12345678910111213141516171819202122
  1. % openvibe toolbox for Matlab
  2. % OV_getSignalOutputHeader.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_features, labels] = OV_getFeatureVectorOutputHeader(box_in, output_index)
  9. if(numel(box_in.outputs{output_index}.header) == 0)
  10. nb_features = 0;
  11. labels = 0;
  12. errno = 1;
  13. else
  14. nb_features = box_in.outputs{output_index}.header.nb_features;
  15. labels = box_in.outputs{output_index}.header.labels;
  16. errno = 0;
  17. end
  18. end