function [outData] = zscoreJo(inData,pSmpl) %ZSCOREJO zscore function adapted to ABR data-structure % basically the default zscore function of Matlab but adapted to the % structure of ABR data % divide input data into trials inData = reshape(inData,[],1); % perform z score normalisation outData = zscore(inData); % restore original shape of input data outData = reshape(outData,pSmpl,[]); end