A simple function to minimize the effort of padding the signals to the same length before correlation:
MRxcorrNorm.m