Solved this with below code.
signal_peaks= Normalised Signal Amplitude for given (xP,yP).
for i1 = 10:10:(numpoints-10),
signal_peaks1(1:LB)=signal_peaks1(1:LB)+ double(LIA)'.*signal_peaks(1:LB); %% Keep adding the intensity every time point is repeated on that location.
scat2= scatter(xP(1:i1-1),yP(1:i1-1),'w.','markersize',18) ;% Making old points to white
scatter(xP(LB:UB),yP(LB:UB),3,signal_peaks1(LB:UB),'filled','o') % Adding 10 new points for persistence