skip to content

Centre for Neuroscience in Education


The following MATLAB code should plot the 3 x 5 SAMPH matrix of the example soundfile “Mary Mary quite contrary”,  in the format as shown below.

pad = zeros(size(tA,1),1);


for m = 1:3 subplot(3,1,m);

data = [squeeze(tA(:,m,:)),pad];

area(data), colormap hsv

axis tight, axis off


Waveform of “Mary Mary quite Contrary”


Phase synchronisation index (PSI): A multi-timescale synchronisation measure

Home page