zscoreJo.m 417 B

123456789101112131415
  1. function [outData] = zscoreJo(inData,pSmpl)
  2. %ZSCOREJO zscore function adapted to ABR data-structure
  3. % basically the default zscore function of Matlab but adapted to the
  4. % structure of ABR data
  5. % divide input data into trials
  6. inData = reshape(inData,[],1);
  7. % perform z score normalisation
  8. outData = zscore(inData);
  9. % restore original shape of input data
  10. outData = reshape(outData,pSmpl,[]);
  11. end