echo on A=double(imread('ecgbw.tif')); surf(flipud(A)) view(0,90) [tt,V]=ginput plot(tt,V,'b-',tt,V,'ro') title('Measured data')